[NTLUG:Discuss] put a process in background.
Bug Hunter
bughuntr at one.ctelcom.net
Thu Nov 1 15:57:23 CST 2001
try
exec ./scriptname
and make sure script begins with something like
#!/bin/bash
bug
On Thu, 1 Nov 2001, Fred James wrote:
> Say I want to spawn a shell in background (stupid, but I am trying to
> keep this simple)
>
> If I do it from the command line, this works:
> $> sh &
> but if I put that (sh &) is a script (sh) I get:
> ./scriptname: sh &: not found
>
> What is going on here, and how can I get around it?
> Any suggestions?
>
More information about the Discuss
mailing list