LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2011, 01:50 AM   #1
srmcvg
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
How to include Background processes in shell script


HI all,

I need to include few background processes in a shell script.

I need to automate a series of steps (commands)through a shell script.

I'm a newbie,so can some one help how to start on this approach
 
Old 11-18-2011, 02:55 AM   #2
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 18
Posts: 106

Rep: Reputation: 12
Nice simple answer.
Use '&' at the end of your command.
so...
>dosomthing &
This would put the command 'somthing' in the background from a command prompt or shell script.
 
Old 11-18-2011, 02:06 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
It would help out a lot if you could give a few details about your goals. How about explaining exactly what you want to do, and show us the code you have so far?

Also, be aware that, especially if this is a homework question, we'll guide you and help you, but we're not here to just give you the answers. You'll learn more by doing your own work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run a shell script in a background? anandv_1234 Linux - Newbie 3 12-23-2007 04:03 AM
how do i get a shell script to run in the background? tjyorkshire Programming 4 07-06-2007 03:28 AM
Shell script: How to include a variable between apostrophes within a command guarriman Programming 3 02-23-2007 04:12 AM
Shell-Script for killing processes oulevon Programming 4 02-14-2006 11:49 AM
Shell scripting and background processes - help needed. trafalgar Programming 3 06-08-2003 10:15 AM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration