> [oliva...@localhost Documents]$ ./edit-crontab 
> ./edit-crontab: line 7: unexpected EOF while looking for
> matching `"'
> 
>

I have fixed it.  Thank you very much again for your kind help :)

[oliva...@localhost Documents]$ crontab -l
# min hr dom mon dow command
30 04 * * 1-5 ~/alarm  >& /dev/null
30 05 * * 1-5  killall -9 /usr/bin/mplayer >& /dev/null
#10 06 *  *  ~/alarm2 >& /dev/null

[oliva...@localhost Documents]$ ./edit-crontab 
[oliva...@localhost Documents]$ crontab -l
# min hr dom mon dow command
30 04 * * 1-5 ~/alarm  >& /dev/null
30 05 * * 1-5  killall -9 /usr/bin/mplayer >& /dev/null
#10 06 *  *  ~/alarm2 >& /dev/null

15 16 * * 1-5 /usr/bin/poweroff >/dev/null 2>&1
[oliva...@localhost Documents]$ cat edit-crontab
#!/bin/sh
set -ue
tmp=/tmp/crontab$$
crontab -l >"$tmp"
echo "15 16 * * 1-5 /usr/bin/poweroff >/dev/null 2>&1" >>"$tmp"
crontab "$tmp"
rm "$tmp"


Regards,

Antonio 


      

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to