The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with script - run by cron richo king Shell Programming and Scripting 2 03-05-2008 08:36 PM
startup script wont start up msearson1 UNIX for Dummies Questions & Answers 7 11-08-2006 05:13 PM
why wont this script run? BG_JrAdmin Shell Programming and Scripting 2 08-27-2006 07:45 PM
Cron Script Q doublek321 Shell Programming and Scripting 2 07-06-2004 10:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2008
mgmcelwee mgmcelwee is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Question script wont run from cron job

I have written a simple bash script that will run a wget command to recursively ftp an entire directories and it's contents.

#!/bin/bash
wget -r -N ftp://userass@server//VOL1/dir

If I run from the regular command line it works fine.

root@BUSRV: /media/backup1$ ./gwbu

When I put it in the crontab, it doesn't run.

00 20 * * * /media/backup1/./gwbu

Can anyone take a look at what I have and help me understand why it is not running through crontab? Thanks in advance!
  #2 (permalink)  
Old 09-11-2008
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,235
Please the search before posting. There are hundreds of threads asking this same question.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0