LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2012, 08:51 PM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
script in called by crontab executing but not writing data to file.


Code:
dave@Dafydd:~$ cat .signature
Confirm .signature is empty 
From the terminal command line run the script and direct it to the file..
dave@Dafydd:~$ rndline-1.sh sig_archive > .signature
dave@Dafydd:~$ cat .signature
Confirm .signature is NOT empty 
Never place something breakable in a chair and think you can sit next to it.
dave@Dafydd:~$ wait a few minutes
Code:
Create the crontab -e  entry.
* * * * * /home/dave/bin/rndline-1.sh /home/dave/sig_archiver > .signature
Code:
dave@Dafydd:~$ cat .signature
Confirm .signature is again empty 
dave@Dafydd:~$
Am I correct in that this tells me the cron event is being executed but the output to '.signature' is failing?
Is there some way special I need to execicute a script with cron?

Reference previous thread here.
 
Old 08-01-2012, 11:21 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You have a typo:
Code:
dave@Dafydd:~$ rndline-1.sh sig_archive > .signature
Code:
* * * * * /home/dave/bin/rndline-1.sh /home/dave/sig_archiver > .signature
 
1 members found this post helpful.
Old 08-02-2012, 01:35 AM   #3
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Original Poster
Rep: Reputation: 29
Sheeeesh! Wonder how many times I've missed that since I logged on at noon today.
Thanks for catching that for me. Everything now works. I can go to bed.
Dave
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying file to different system via crontab-called scp - 'No route to host' EnderX Linux - Networking 3 06-11-2012 07:11 AM
[SOLVED] Crontab not executing specific script abdoullah Linux - General 3 06-17-2011 02:15 PM
Howto stop squid before executing crontab file? gardenair Linux - Server 6 03-15-2011 02:42 AM
Seems crontab is not executing script... jonaskellens Linux - Newbie 3 11-18-2010 08:20 AM
Executing PHP script in crontab (include path problems) bar338 Linux - Newbie 5 12-21-2009 02:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration