This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Execute unix command

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
p
paulOr
Voice
Posts: 10
Joined: Sat Nov 01, 2008 10:32 am

Execute unix command

Post by paulOr »

Im wanting to create a simple little script that will do a unix command, iv tryed modifying the uptime scripts to do this, but its not really working.

In the script i want to set a location i.e
/home/paul/webserver/blah/blah/blah/

then set the executable file
m00

so that when i type a command:
!m00

the m00 executable file will be executed.

then show a message:

" m00 has been executed "

Something like that :P

Can anyone help me out there?
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

There is an example for how to do a !exec command, in the forum. http://forum.egghelp.org/viewtopic.php?t=9945 :)
Post Reply