[NTLUG:Discuss] Shell script?
Wayne Patterson
wjpatterson at charter.net
Mon Jan 12 21:07:50 CST 2004
Thanks Lance,
Patrick R. Michaud beat you to it. I knew it would be something easy.
But when you don't know... Hey, ya gota ask.
For what I wanted to do it was this:
konsole --workdir /PATH/to/dir/ -e "command" &
I like working in KDE.
Again thanks for your responce.
wayne
Lance Simmons wrote:
>* Wayne Patterson <wjpatterson at charter.net> [040112 20:01]:
>
>
>>I'm sure this is an easy thing to do IF you know how, and I don't. I
>>want to write a script that will open a console, cd to a certain
>>directory and execute a command to start another program in that
>>console. Does that make any sense? And if so what would it look like?
>>
>>
>
>When you say open a console, do you mean open an xterm? If so, how
>about:
>
> xterm -e 'cd /foo/bar; /bin/foo'
>
>(you can look at the man page for whatever x terminal emulator you're
>using, such as gnome-terminal, to see what the syntax is)
>
>if you mean a new shell, how about:
>
> /bin/sh -c 'cd /foo/bar; /bin/foo'
>
>
>
More information about the Discuss
mailing list