Opening console from shell script and giving command to the opened console from the shell script
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
精彩评论