Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> cron and lftp issue
aristosv
post Jul 19 2015, 11:46 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 27-March 15
Member No.: 18,860



I have the following scripts running on raspbian.

start
CODE
#!/bin/bash
/root/config/commands 2>&1 > /root/log/$HOSTNAME.log


commands
CODE
#!/bin/bash
source /root/config/variables
echo TestLine
/usr/bin/lftp ftp://user:pass@host.com -e "set ftp:ssl-allow no; set net:reconnect-interval-base 5; set net:max-retries 2; mirror -e /testgroup/music /root/media; quit"
/usr/bin/mail -s "$HOSTNAME Report" $emailaddress < $logdir/$HOSTNAME.log


When I run "start" manually I receive the email below

CODE
TestLine
Total: 1 directory, 4 files, 0 symlinks


When I run it using cron, I get the following email

CODE
TestLine


Any idea why would cron strip the lftp output from the email?

Thanks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2017 - 10:55 AM