Jump to content

Bash scripts


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

:oops:

 

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

 

:cheesy:

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...