Jump to content
  • 0

Centos 6 64bit Sh script


kevinsad0708

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/02/12
  • Last Seen:  

How can i make this ? please help me i dont know how..? i think this is code.. please give me exact code Thanks guys

 

 

504nif.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/05/11
  • Last Seen:  

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 YOUR_USER_NAME@SERVER_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...