LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-05-2012, 08:59 AM   #1
ehsanasadi
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Execute multiple command using nohup


I want to execute multiple command using nohup, And each command should execute after previous command, I used this command for example:
Code:
nohup wget $url && wget $url2 > /dev/null 2>&1 &
But this command didn't work.
What is the command for this propose?

Any help would be much appreciated.
 
Old 09-05-2012, 09:00 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,442

Rep: Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774
create a small script containing all of your commands and start it with nohup
 
  


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
Script to execute command to get info from multiple servers isourabh.wadhwa Linux - Newbie 1 05-17-2012 10:29 AM
Executing df -k command from java is not working for multiple execute riyas_ppt Programming 1 01-13-2012 10:20 AM
script to execute a command multiple times snr8fl3 Programming 5 11-17-2008 12:49 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
nohup command chbin Slackware 1 03-31-2005 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 PM.

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