Jump to content
  • 0
kevinsad0708

Centos 6 64bit Sh script

Question

2 answers to this question

Recommended Posts

stop_server => 'alias ra_stop='/path/to/ra/athena-start stop'

start_server => 'alias ra_start='/path/to/ra/athena-start start'

restart_server => 'alias ra_restart='/path/to/ra/athena-start restart'

update_server => 'alias ra_upd='/path/to/ra/tools/update.pl'

 

Once all alias are define you could simply create some desktop file, to match the alias command.

Or simply create some desktop file with the full command like I gave you.

Both should work fine.

Link to comment
Share on other sites

If that shortcut is for windows,

 

I use plink.exe + .bat combo to create something like that. (The code below is only for server that use username and password for authentication)

echo yes | plink -agent [email protected]_IP -pw YOUR_PASSWORD "/path/to/ra/athena-start restart"

Save as something.bat. Put togather in a folder with plink.exe file. It should be working now.

 

You can always convert bat files to exe.

 

You can also warp togather plink + command.exe under 1 exe with custom message box.

 

This is the easiest way to me other than writing c++ code.

Edited by Kekwa
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.

Guest
Answer this question...

×   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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.