Find the answer to your Linux question:
Results 1 to 2 of 2
im having a big problem. Im using a script with wget to retrieve some files from a server. Since the files are getting bigger and i must retrieve them every ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    13

    really needing help

    im having a big problem. Im using a script with wget to retrieve some files from a server.
    Since the files are getting bigger and i must retrieve them every hour more or less i need to know how can i modify the script (this script is being launched by a cronfile every hour) so it detects if the wget is already running, if so dont launch it again and exit but if wget is not running then launch it
    I think its just an if but the deal is that i dont know how to check if the wget app is running by command line (i can see it with the nice gui interface called system monitor).
    Im using ubuntu 7.04.
    Thanks a lot for the help

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Quote Originally Posted by luishi07 View Post
    how to check if the wget app is running by command line.
    try this command,
    ps -aux | grep wget
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...