co Posted January 23, 2004 Report Share Posted January 23, 2004 How can I setup a bash script so that when I double click on an icon, konsole opens and displays what's happening? It's so I can setup f-prot or bitdefender antivirus with the relevant switches to run from an icon on the desktop, but running inside konsole. Cheers co Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted January 23, 2004 Report Share Posted January 23, 2004 There's actually a command when setting up icons in KDE to run from a console. That should in theory open up your terminall for you. Quote Link to comment Share on other sites More sharing options...
co Posted January 23, 2004 Author Report Share Posted January 23, 2004 yeah, I tried that. The program ran but it didn't open konsole.............. Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted January 23, 2004 Report Share Posted January 23, 2004 You could always try konsole -e 'command' (with the quotes) to open the console and execute the command in that window. Quote Link to comment Share on other sites More sharing options...
co Posted January 23, 2004 Author Report Share Posted January 23, 2004 Thanks for the reply. When run from a shortcut on the desktop nothing seems to happen, but if I run the script from the command line konsole does briefly open but closes leaving the following error message: [chris@compaq chris]$ sh test.run konsole: cannot chown /dev/pts/6. Reason: Operation not permitted konsole_grantpty: determined a strange device name `/dev/ptmx'. konsole: chownpty failed for device /dev/pts/6::/dev/pts/6. : This means the session can be eavesdroped. : Make sure konsole_grantpty is installed in : /usr/bin/ and setuid root. konsole_grantpty: determined a strange device name `/dev/ptmx'. The following is the basic example of the script I'm trying to get to work: #! /bin/bash konsole -e 'bdc /home/chris/tmp' I've set it to rwx for everyone Cheers co Quote Link to comment Share on other sites More sharing options...
co Posted January 23, 2004 Author Report Share Posted January 23, 2004 er........ I carried on messing around, tried the open terminal option in one of the shortcut menus, as you suggested hours ago, and it works. I put --noclose to keep the window open to review the results and alls fine. I did try that before, honest guv. Anyway something changed before then and now. Thanks for the help, have a good one. co Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.