[SATLUG] help with webadmin and a scheduled chron job

John D Choate jdchoate at gmail.com
Sat May 23 16:10:35 CDT 2009


On Saturday 23 May 2009 15:53:28 Todd W. Bucy wrote:
> that did the trick! thanks
> 
> Todd
> 
> On Sat, 2009-05-23 at 13:33 -0500, John D Choate wrote:
> > On Saturday 23 May 2009 08:21:56 Todd W. Bucy wrote:
> > > #!/bin/bash is there of course.  As I said before the script runs great
> > > from the command line I just want it to run on a daily basis at a
> > > specific time.
> > > 
> > > Todd
> > > 
> > > On Fri, 2009-05-22 at 20:28 -0500, John D Choate wrote:
> > > > On Friday 22 May 2009 19:42:12 Todd W. Bucy wrote:
> > > > > I wrote a nifty little script that runs various sytem reports and
> > > > > outputs the data to a html document.  I know that the code is good as I
> > > > > have tested it several times at the command line.  I am using webadmin
> > > > > for most of my administrative tasks on my home server and am therefore
> > > > > trying to set the job to run daily at midnight under the Scheduled Chron
> > > > > Jobs tab.  Problem is when I test the command
> > > > > "~/scripts/system_report.sh"  I get the following output:
> > > > > "Output from command /home/redpill-master/scripts/system_report.sh ..
> > > > > TERM environment variable not set."
> > > > > 
> > > > > can someone point me in the right direction? 
> > > > > 
> > > > > thanks
> > > > > Todd
> > > > > 
> > > > > 
> > > > 
> > > > On second thought, did you include the following at the beginning of your script?
> > > > 
> > > > #!/bin/bash
> > > > 
> > > > That may be it.
> > > 
> > > 
> > 
> > When I set up the cron job in webmin, I used the sh command followed by the full path to the script like:
> > sh /home/username/Documents/uptime.sh
> > 
> > maybe using sh will help?
> > 
> > John
> 
> 
Good to hear it. You're welcome.

John


More information about the SATLUG mailing list