View Single Post
Old 10-05-2017, 02:20 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Code:
$ barry@paragon-DS-7:~$ echo `date +%s`; 

sleep 3; #script code here

echo `date +%s`;
outputs;

barry@paragon-DS-7:~$ echo `date +%s`; sleep 3; echo `date +%s`;
1507240274
1507240277

in seconds since epoch (just subtract the values (reversed))


If you don't have a MAIL_TO=
at the top of your crontab you have to state it (or the right email address) in the cron itself.

The password warning is for security. This is not done over the internet so it is a root cron? Well if you can't trust root locally on your server --- reformat fast!

Quote:
Data can be encrypted in the command channel, the data channel, or ideally, both. SCP: Secure Copy, or SCP, does not use FTP or SSL to transfer files, rather Secure Copy handles the file transfer and relies on the SSH protocol to provide authentication and security for both credentials and data.
Unless, you are sending financial data or state secrets, I really would not worry sending a password SCP.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote