开发者

Opening console from shell script and giving command to the opened console from the shell script

开发者 https://www.devze.com 2023-02-13 01:01 出处:网络
I want to write the script file command.sh as follows 开发者_JS百科(only single line): konsole cd /home/user/temp/

I want to write the script file command.sh as follows 开发者_JS百科(only single line):

konsole cd /home/user/temp/

I want to open a console from this shell script and want to do a change directory to temp with the opened console.

When I executed this shell script it was able to only open console not do a cd.

(Note : I want to change directory in the new console opened by executing the script and not the console in which I am executing the script(current console))


From the Handbook:

konsole --workdir dir
0

精彩评论

暂无评论...
验证码 换一张
取 消