Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.
Moderator: General Moderators
-
btfans
- Forum Newbie
- Posts: 22
- Joined: Thu Jun 10, 2004 10:58 am
Post
by btfans »
I run the proftpd in RH9 and allow u/l and d/l, how to write a script
such that it is cron to run after system start and yet it check
1) no traffic in proftpd (and to xferlog)
2) time is 02:30 am
Then, it issue system shutdown command for shutdown
shutdown -h now
Thanks,
Matthew
-
crabyars
- Forum Commoner
- Posts: 37
- Joined: Thu Jun 17, 2004 8:24 pm
Post
by crabyars »
Do you know the linux commands to do what you ask? Sounds like you will need to write a shell script and call that from php with
exec
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
you know.. if you look down the list of topics in this forum, you'll see a topic on linux shutdown...