The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
console set up hp ux 11i jestinabel HP-UX 2 12-17-2006 09:30 PM
How to get console b_manu78 AIX 1 06-29-2005 12:29 AM
Console Log kdreaves UNIX for Dummies Questions & Answers 4 05-21-2004 02:13 PM
console guest100 UNIX for Dummies Questions & Answers 5 02-13-2002 02:17 AM
Console guest100 UNIX for Dummies Questions & Answers 4 10-19-2001 05:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-19-2006
Registered User
 

Join Date: Aug 2006
Posts: 7
Console

Hi all,
Where we can run two same program on unix console at same time?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-19-2006
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
They can run simultaneously, but you have to launch one after the other:
Code:
$ prog1 &
$ prog2 &
Regards.
Reply With Quote
  #3 (permalink)  
Old 10-19-2006
Registered User
 

Join Date: Oct 2006
Location: Bangalore, India
Posts: 41
grial

is the second '&' necessary? prog2 can run in the foreground itself
Reply With Quote
  #4 (permalink)  
Old 10-19-2006
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Originally Posted by napolayan
grial

is the second '&' necessary? prog2 can run in the foreground itself
If I've understood what your asking, no, it's not necessary in that case.
Reply With Quote
  #5 (permalink)  
Old 10-19-2006
Registered User
 

Join Date: Oct 2006
Posts: 6
Quote:
Originally Posted by napolayan
grial

is the second '&' necessary? prog2 can run in the foreground itself
I prefef using 'nohup' at these cases.



--
Alexander
http://unix-news.blogspot.com
Reply With Quote
  #6 (permalink)  
Old 10-19-2006
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Yes, that's useful in case you logout when the process is still running (avoids the HUP signal sent by the shell to its child)
Regards.
Reply With Quote
  #7 (permalink)  
Old 10-20-2006
Registered User
 

Join Date: Oct 2006
Posts: 6
Yes, and one ot the best utilities for this is also 'screen', which has many features.

There are many methods to do one thing, we can choose any we like. :-)



--
Alexander
http://unix-news.blogspot.com
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0