Re: how to add stuff to crontab without using crontab -e

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Antonio Olivares wrote:
> Dear fellow Fedora users,
> 
> I want to know if it is possible to edit/append to crontab
> without
using crontab -e. I have about 10 machines running Fedora and at the
end of the day I have to manually power them off (shutdown). For a
while, I started thinking about it, well I can make a crontab to
shutdown the machines at a certain time:
> 
> Edit crontab to shutdown machines from student account at 4:15
every day(Monday-Friday) at school :) This way I don't have to shut
them down myself :)
> 
You may want to try a different approach. I would think it would be
much easier to just add a shutdown file to /etc/cron.d The format is
 slightly different - you have to specify the name of the user to
run as. You could create a file called poweroff containing:

# Power off the system weekdays at 4:15 pm.
#
15 16 * * 1-5 root /sbin/shutdown -h now

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux