Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running tcsh inside bash shell

Status
Not open for further replies.

Samer Haddad

Systems Engineer
Jan 10, 2020
1
0
0
US

I have a tcsh script called xx which takes 3 arguments like this: xx a b c
I want to run xx a b c inside a bash shell, how I do that?
I know I can do tcsh xx a b c
what is the syntax for passing xx a b c (with arguments) to the tcsh commmand?

pls help
 
While you're in bash, just run the command as you mentioned...

Code:
bash> tcsh xx a b c

You can also add the '-c' argument to treat the rest of the line as a command, but I believe that's the default anyway.

Code:
bash> tcsh -c xx a b c

It's more steps, but you could also do this...

Code:
bash> tcsh
tcsh> xx a b c
tcsh> exit
bash>

Try '[tt]man tcsh[/tt]' more more information.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top