Schedule Shell Script

Discussion in 'Programming/Scripts' started by GMSS, Nov 20, 2017.

  1. GMSS

    GMSS New Member

    Hi Guys,
    I need a shell script that will output the command "ps aux" to a file name "Tuesday" every second for 10 seconds to the path /home/user/Desktop.
    Seeing that it will run every second to the same directory, the filename will need to increment as well i.e Tuesday2, Tuesday3, Tuesday4.....Tuesday10. Can someone please help with this?

    Many Thanks in advance

    Kind Regards
    GMS
     

Share This Page