469,914 Members | 2,105 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,914 developers. It's quick & easy.

Creating new sessions using Shell Script

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
1 3630
Laharl
849 Expert 512MB
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.

Similar topics

13 posts views Thread by jamie howard | last post: by
6 posts views Thread by Jeff | last post: by
1 post views Thread by Duncan | last post: by
2 posts views Thread by vmalhotra | last post: by
Atli
2 posts views Thread by Atli | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.