script?/batch?

Status
Not open for further replies.

IBMan

Daemon Poster
Messages
1,084
So I use 2X Application Server and I'm starting to use it on linux, however to actually use an application you need to run a command from terminal...

Instead of me launching terminal and typing in the command to launch the app, How can i create a script that basically has an icon on the desktop that when double clicked, runs...

Code:
/bin/appserverclient -s172.16.10.1 -a"Word"


i tried entering that into a text document titled "word.sh"

nothing worked, currently i tried this on ubuntu and am about to try it in suse.

any help is appreciated, thanks.
 
In GNOME, this applies to most distro like SUSE, you just right click on your desktop and create a new launcher. There you give it a name, the command to launch it and an icon.
 
Do this as root:
Code:
gedit /bin/appserver
Make the text file look just like this:
Code:
#!/bin/bash
/bin/appserverclient -s172.16.10.1 -a"Word"
Then you need to make it executable:
Code:
chmod a+x /bin/appserver
Following that, all you'd need to do is run the shell script with the command "appserver" instead of /bin/appserverclient -s172.16.10.1 -a"Word" ... and that concludes my instructions on writing shell scripts.
 
Status
Not open for further replies.
Back
Top Bottom