+ 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

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 5
    Points: 12,273, Level: 26
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,866
    Helped
    401 / 401
    Points
    12,273
    Level
    26

    Re: how to switch from one shell to another

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



    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 4
    Points: 7,950, Level: 21
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germay
    Posts
    1,181
    Helped
    255 / 255
    Points
    7,950
    Level
    21
    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
    FPGA enthusiast!


    2 members found this post helpful.

--[[ ]]--