Register
It is currently Sat Nov 01, 2014 2:16 am

new process


All times are UTC - 6 hours


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Tue Jun 22, 2010 3:59 am   

Joined: Tue Jun 22, 2010 3:55 am
Posts: 1
hi all,
i would like to do a quite easy thing...
i need to write a script that runs a program into another shell...
-open new shell
-run here the program not in bg.
but i don't know who to use the second shell as standard output.

tnx for any help
cheers

vale


Top
 Profile  
 PostPosted: Wed Jun 23, 2010 3:09 am   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 552
Hi valevale,

this is not clear. can you detail more?

why do you need an other shell? how is it supposed to behave?...


Top
 Profile  
 PostPosted: Sun Jun 27, 2010 1:32 am   
User avatar

Joined: Sun Jun 27, 2010 12:57 am
Posts: 192
I get the impression you mean you want to start a new process in a new terminal instead of a new shell, is that right? because starting a process in a new shell would be:

Code:
#!/bin/sh
/bin/sh -c date

then 'date' is run in a new shell

But I think you want something like:
Code:
#!/bin/sh
/bin/xterm -e 'date; sleep 5'

(the sleep 5 is only there to keep the xterm on screen long enough for you to see the date :) )

Please explain a bit more what you are trying to accomplish.

Regards, Patsie


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP