konsole behaves oddly

Duncan 1i5t5.duncan at cox.net
Thu Dec 10 21:36:54 GMT 2009


xPol posted on Thu, 10 Dec 2009 21:30:53 +0100 as excerpted:

> Executing the simple script file  ~/test, containing the command 'ls'
> through konsole:
> 
>   /usr/bin/konsole -e ~/test
> 
> 
> returns:
> 
>  Warning: Could not start program '/home/xpol/test' with arguments
> '/home/xpol/test'.
> 
> 
> What is wrong?

Is the test script set executable?  Trying to run such a script here 
returns a similar but slightly different (probably kde version 
differences) here, if the script isn't executable.

If it's executable, it evidently runs, but without the --hold or
--noclose options, it happens too fast to see the output.  That's another 
hint that the script isn't executable and thus not running, and you're 
getting bash (which doesn't close) instead.

If you don't want to mark it executable, run bash as the executable, 
giving it the script name, like so:

/usr/bin/konsole -e bash -c ~/test

Again, without the konsole --hold/noclose option, it doesn't stick around 
long enough to see, but it does seem to run, the same as if the script 
was set executable.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list