By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,746 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,746 IT Pros & Developers. It's quick & easy.

Creating new sessions using Shell Script

P: 1
Hi,

I am a newbie in Shell Script. I am trying to open 10 new sessions,each session running on a separate thread. For each session, I open a new xterm, go to a particular directory and run a script. here is the code for the same.

#!/bin/sh
xterm
cd /home/rt
./try.sh
xterm
cd /home/rt
./try.sh

once the script runs only a single window opens and the script try.sh does not start on the newly created window.

If someone can point out where I am going wrong it will be of great help
thanks
AB
Mar 19 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 849
If you haven't added . to your $PATH, that won't run unless (this may be the case even if you have added it) you use 'sh ./try.sh'.
Mar 19 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.