Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run commands on sun solaris box using PHP script and output to page

Status
Not open for further replies.

dreamaz

Technical User
Dec 18, 2002
184
0
0
CA
Hello,

I'd like to create a php page with a txtfield requesting user to enter in a number and using that variable, run a grep command on a sun solaris box against a logfile - and return the results back to the page.

Im relatively knew to the sun side of things, but I am ok with PHP, any help is apprecaited.

Thanks,

dR
 
Ohh i forgot, this should include an SSH <ip> command at the begining so it can ssh into a box here and also the pasword which i can include in the script, then from there it will do the command line GREP etc..

Thanks
 
sounds like you ought to be asking the sun chaps. if you're ok with php (as you say) then it is just a question of using an appropriate system call (the backtick probably) to run the command and capture the output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top