The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-28-2006
mochi mochi is offline
Registered User
 

Join Date: Feb 2006
Posts: 4
error piping nohup to /dev/null

Hi,

I have a script as follows:

#!/bin/sh

nohup ./my_program >& /dev/null &

However, i get a "Generated or received a file descriptor number that is not valid" whenever I run it.

running the command up in prompt is ok though.

if i change the first line to #!/bin/csh
i get a then: then/endif not found.

Pardon my ignorance but I really can't solve this problem.

Can anyone kindly offer some advice?
Reply With Quote
Remove advertisements
!!
Forum Sponsor