LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,846

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


Reply



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 12:50 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
Open Source Consulting | Domain Registration