The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-18-2006 01:30 AM
How to get console b_manu78 AIX 1 06-29-2005 03:29 AM
Console Log kdreaves UNIX for Dummies Questions & Answers 4 05-21-2004 05:13 PM
console guest100 UNIX for Dummies Questions & Answers 5 02-13-2002 06:17 AM
Console guest100 UNIX for Dummies Questions & Answers 4 10-19-2001 08:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-19-2006
sonali sonali is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 7
Console

Hi all,
Where we can run two same program on unix console at same time?
  #2 (permalink)  
Old 10-19-2006
grial's Avatar
grial grial is offline Forum Advisor  
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.
  #3 (permalink)  
Old 10-19-2006
napolayan napolayan is offline
Registered User
  
 

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

is the second '&' necessary? prog2 can run in the foreground itself
  #4 (permalink)  
Old 10-19-2006
grial's Avatar
grial grial is offline Forum Advisor  
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.
  #5 (permalink)  
Old 10-19-2006
nonkey nonkey is offline
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
  #6 (permalink)  
Old 10-20-2006
grial's Avatar
grial grial is offline Forum Advisor  
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.
  #7 (permalink)  
Old 10-20-2006
nonkey nonkey is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0