+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Member level 3
    Points: 449, Level: 4

    Join Date
    Mar 2016
    Posts
    54
    Helped
    1 / 1
    Points
    449
    Level
    4

    how to switch from one shell to another

    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

    •   Alt8th March 2017, 10:54

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 11,570, Level: 25
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,770
    Helped
    385 / 385
    Points
    11,570
    Level
    25

    Re: how to switch from one shell to another

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



    •   Alt8th March 2017, 11:07

      advertising

        
       

  3. #3
    Advanced Member level 3
    Points: 6,699, Level: 19
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germay
    Posts
    966
    Helped
    216 / 216
    Points
    6,699
    Level
    19
    Blog Entries
    1

    Re: how to switch from one shell to another

    Can you not call the bash cmds from tclsh?

    http://stackoverflow.com/questions/4...rom-tcl-script
    .....yes, I do this for fun!


    2 members found this post helpful.

--[[ ]]--