How to write ctrl+z,bg commands in sequence in bash script

Amrit Pal Pathak amritpalpathak1 at gmail.com
Mon Aug 22 10:46:26 UTC 2011


On Mon, Aug 22, 2011 at 3:20 AM, Alan Pope <alan at popey.com> wrote:

> On 22 August 2011 08:18, Amrit Pal Pathak <amritpalpathak1 at gmail.com>
> wrote:
> >  I want to use ctrl+z ,bg commands in a sequence in my script.Can anyone
> > please tell me how i can do it.?
>
> Stick an ampersand at the end of the line you want to background. Like
> this:-
>
> #!/bin/bash
> command_one &
> command_two
>
>
> Thanks .I will try.



-- 
Thanks

Regards

Amrit Pal

amritpalpathak.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110822/1377527b/attachment.html>


More information about the ubuntu-users mailing list