how to switch from one shell to another

Status
Not open for further replies.

anilineda

Member level 3
Joined
Mar 10, 2016
Messages
54
Helped
2
Reputation
4
Reaction score
1
Trophy points
8
Activity points
466
hello,

I am in a problem of dealing with two shells, I have a some 10 lines of commands in a single file where the first 5 lines are only understood by tclsh and the next five lines are understood only by either my default bash or csh. if i source the file (containig tthese 10 commands), i want my job to be done in a single press of my enter key.

the problem is , if i write "csh " command at the middle of the file (i.e at 6th line), it says invalid command. but if i enter myself csh in terminal then it will take and accept.

Regards,
Anil
 

post your script or example script which is trying to switch shells.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…