qtcheung
04-02-03, 20:43
| if script A is dependent on script B but script A creates a new shell session but Script B needs to run on that same session, do you have any idea how do I go about calling these two scripts to run on the same session? |
View Full Version : script calling another script
| if script A is dependent on script B but script A creates a new shell session but Script B needs to run on that same session, do you have any idea how do I go about calling these two scripts to run on the same session? |
| Thank you for the quick respond. I have tried that and it works great. The problem I'm having is that I have two scripts. One script is a shell script and the other is a perl script. The perl script is dependent on the shell script in order to run properly. I'm trying to run a cronjob to have the shell script run first without without creating a new process and have the perl script run on that same shell. Is this possible? Can cron do that? Thanks Tommy Originally posted by sathyaram_s To run in the same shell, you will have to use a '.' , for eg ... host1:/home/user1>. .profile The first . indicates that the script .profile should run in the same shell ... Cheers Sathyaram |