Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-02-2006, 12:07 PM   #1
Solid State Member
 
Join Date: Apr 2005
Posts: 11
Default Execute Script on server restart

How do we go about executing a perl script when apache is restared. OS is Fedora
__________________

ewebtalk is offline   Reply With Quote
Old 03-20-2006, 11:40 PM   #2
Solid State Member
 
ToR-n-AdO's Avatar
 
Join Date: Mar 2006
Posts: 8
Send a message via MSN to ToR-n-AdO Send a message via Yahoo to ToR-n-AdO
Default Re: Execute Script on server restart

you have to login to the server as root through SSH and type this command

Code:
sh ./*script_name* &
(without the *)

make sure u r in the folder containing the script
to check your path type

Code:
ls

hope it works for u
ToR-n-AdO is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 11:47 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0