Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-23-2006, 12:36 PM   #1 (permalink)
 
Monster Techie

Join Date: Dec 2003

Posts: 1,087

IBMan

Send a message via Yahoo to IBMan
Default script?/batch?

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.
__________________
Server:
AMD Athlon 4000+ @ 2.4 GHz
4096 MB RAM
40 GB HDD
Dual Mirrored 500 GB HDDs
DVD-ROM Drive
Windows Server 2003 x64 R2 SP2
IBMan is offline  
Old 09-23-2006, 12:54 PM   #2 (permalink)
Law
Law's Avatar
 
Wizard Techie

Join Date: Aug 2005

Location: the data closet

Posts: 4,172

Law is on a distinguished road

Default

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.
Law is offline  
Old 09-23-2006, 05:35 PM   #3 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

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.
The General is offline  
Old 09-24-2006, 08:46 PM   #4 (permalink)
 
Monster Techie

Join Date: Dec 2003

Posts: 1,087

IBMan

Send a message via Yahoo to IBMan
Default

thanks for the replies...when i get time i'll try it out.
__________________
Server:
AMD Athlon 4000+ @ 2.4 GHz
4096 MB RAM
40 GB HDD
Dual Mirrored 500 GB HDDs
DVD-ROM Drive
Windows Server 2003 x64 R2 SP2
IBMan is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On