Find the answer to your Linux question:
Results 1 to 2 of 2
how does this work in case of CSH? i want to bring a pid to foward using fg in csh mode it says No job control in this shell. #!/usr/bin/csh ...
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    1

    fg: no job control, in script

    how does this work in case of CSH?

    i want to bring a pid to foward using fg in csh mode
    it says No job control in this shell.

    #!/usr/bin/csh
    sleep 20 &
    set PROC = 0
    foreach PROC ( `ps -ef |grep $$ | grep sleep | grep -v $0 | grep -v grep | awk '{ print $2 }'` )
    fg ${PROC}
    end

    This is wat i tried and it did not work
    please help me urgently

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    I found this which may point you in the right direction.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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