|
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?
|