bfilipek
asked on
Run script from RedHat Linux RHEL5 desktop in GNOME
I have a few scripts in my /home/myname directory that run executable files located elsewhere on my server. Here are the files:
/home/myname/PGM1
/home/myname/PGM2
/home/myname/PGM3
The contents of these files are basically a script that look like this (this example from PGM1):
cd /data/program
./run /data/PGM1
I need these 3 scripts to run in a terminal on my GNOME desktop. So what I do is log into the console, open a terminal, and type ./PGM1. This then runs the script in a terminal window which stays on the screen. I repeat this step for all 3 scripts.
What I want to do is have a shortcut to these scripts on my GNOME desktop that I can just double click on. So I created the short cuts, but when I try to open them, nothing happens. I've tried right-clicking them and selecting "Open with> /bin/bash" and also "Open with> terminal" with no luck. Any thoughts?
/home/myname/PGM1
/home/myname/PGM2
/home/myname/PGM3
The contents of these files are basically a script that look like this (this example from PGM1):
cd /data/program
./run /data/PGM1
I need these 3 scripts to run in a terminal on my GNOME desktop. So what I do is log into the console, open a terminal, and type ./PGM1. This then runs the script in a terminal window which stays on the screen. I repeat this step for all 3 scripts.
What I want to do is have a shortcut to these scripts on my GNOME desktop that I can just double click on. So I created the short cuts, but when I try to open them, nothing happens. I've tried right-clicking them and selecting "Open with> /bin/bash" and also "Open with> terminal" with no luck. Any thoughts?
Are you running them as the same user in bash and in Gnome ? I.e. are you running them as root in bash ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin