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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exec a shell with a cmd from another shell and keep it open? 2

Status
Not open for further replies.

cptk

Technical User
Mar 18, 2003
305
US
I can ...
> exec dtterm -title "mytitle" -e ls -la

but in doing so the new shell closes when the cmd is completed plus it closes the the calling shell!

If I ...
> eval dtterm -title "mytitle" -e ls -la , at least the calling shell doesn't close.

Is there a way to keep the new shell open after the cmd is finished?
 
Or perhaps this ?
dtterm -title "mytitle" -e sh -c 'ls -la; exec sh'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV - that works nicely ...

I've used ksh instead of sh ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top