SSH via PHP?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Sun Jun 29, 2003 6:29 am

OK, is it possible to use PHP to:

start a process, restart a process and end a process? I need some advice, I've been asked to write this script, but I'm a bit stuck when it comes to the process part... anyone help?

Andrew

liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Sun Jun 29, 2003 6:34 am


User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Sun Jun 29, 2003 6:44 am

wooooooooooooohooooooooooooooo! Thanks :D

liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Sun Jun 29, 2003 7:41 am

no problem, hope they are just as fun a C processes and threads :wink:

User avatar
mike
New php-forum User
New php-forum User
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens
Contact:

Fri Jul 04, 2003 6:40 pm

Posix are very good for this but you can use system() as well. Eg: system("/etc/proccess start"); or system("ps -aux")
11:16am up 404 days, 2 users, load average: 148.68, 143.45, 132.6


Mike Vassileiou
[Systems Administrator / PHP Developer]


PHP/MySQL Manual:
http://www.phpmysql-manual.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests