SSH via PHP?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

SSH via PHP?

Postby bezmond » 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: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » 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:

Postby bezmond » Sun Jun 29, 2003 6:44 am

wooooooooooooohooooooooooooooo! Thanks :D

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

Postby liquedus » 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:

Postby mike » 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")


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron