1
vote
1answer
91 views

Capturing output from a remotely executed command via SSH fails in CRON

This question is in a direct relation to this one: ssh fails to execute remote command when run from cron bash script - works from CLI I'm not able to comment on the accepted answer as I don't have ...
3
votes
1answer
119 views

Wheezy processes die periodically

I have a very weird problem. Certain processes on my mail server, but not all, die periodically (every second month or so). A few of the process that die are: ssh dovecot postfix Processes that ...
1
vote
1answer
112 views

One-line backup, compress, scp database file

I support a company with a remotely hosted web site. They use PostgreSQL dbs. I can't write scripts on the remote server, and I don't want to store any backup files on the remote server, but I can ...
0
votes
0answers
59 views

Cron Jobs unable to deliver email error report

I am sure I have right syntax and I am still unable to receive report emails to my email address. My OS is CentOS 6.4. My Crontab script is MAILTO="cron@mydomain.com" * * * * * /usr/bin/php5 ...
1
vote
3answers
727 views

How can I run a Cron job to make backups of a MySQL server by SSH

I have a production server running CentOS with a MySQL database. At home, I have a QNAP NAS (runs a little embed linux). I want to make a Cron job on my NAS to backup the data from my CentOS ...
0
votes
2answers
59 views

using ssh to automatically retrieve info from remote box

Greets all. I need a 'basics-202' question answered; it's been a while. From a cronjob, how do I automatically ssh to a remote box to retrieve information that normally requires root equivalence to ...
-1
votes
1answer
79 views

Cron Find & Replace via ssh - send a result via mail [closed]

I'm having a small issue, i'm running and cron task every 5 minutes which is looking text chain and replacing it with nothing.. In order to optmize something i would like to add a new function to my ...
1
vote
1answer
127 views

Getting cron logs to add to file, not override it

First, I'm sorry if this is the wrong stackexchange for this, but it seemed like the right one. This is my crontab right now: MAILTO=****@gmail.com 10,30,50 * * * * ~/webapps/****/apache2/bin/start ...
0
votes
1answer
564 views

rsync over ssh fails as cronjob works on shell - NAS4Free

This is my rsync.sh in the home directory of my backup user $ cat rsync.sh #!/bin/sh rsync -avvvz --stats --log-file="/var/log/rsync_client.log" -e "ssh -i /mnt/stor0/backup/backup-rsync-key" ...
0
votes
1answer
125 views

Running cronjobs with proxy

I have a requirement where I have to run several cron jobs with specific IP in an EC2 instance. That specific IP is used by another EC2 instance. I have access to that EC2 instance. Is there any ...
0
votes
2answers
1k views

Host key verification failed [rsync: connection unexpectedly closed]

I have been stuck with a peculiar problem, where rsync command is not running when it is executed through crontab. Below is the code : #!/bin/sh -x ...
0
votes
1answer
168 views

what does the --backup-mode option for rdiff mean?

I've got rdiff-backup up & running nicely using cron jobs over SSH between two VMs (my webserver and a backup space), using scripts put together from various places online. I'm backing up various ...
-2
votes
1answer
68 views

How to log into server using ssh connection (Im using helios) [closed]

My host has quoted me this: Have you checked that your php script runs OK from the command line? The cron process needs to activate the command-line version of php - /usr/bin/php - because it ...
0
votes
0answers
194 views

Automating rsync job with cron

I'm having troubles getting an rsync script to work on cron. I know this is a question that's been asked aplenty, but I've read all the answers I can find, and followed all of the instructions, but ...
0
votes
2answers
127 views

Creating a backup script involving screens and java?

Hi guys I use centOS 64bit 5.7 and I need to create a backup script What I want it to do: screen -r example command into java pause for x amount of seconds exit screen zip/rar a folder which and ...
0
votes
1answer
405 views

RSync shell script failing to run as CRON, runs fine manually

I have a simple shell script that runs Rsync. It runs fine if I call it manually from the command line, but when I set it up as a CRON job I get the following error: rsync: failed to open exclude ...
0
votes
1answer
166 views

How to do a Cronjob via SSH on Linux

I have a linux server where I want to install a Cron. I was given a URL, and by visiting this URL (GET request), it will automatically rebuild a new sitemap for my website. Basically, I want a ...
0
votes
1answer
675 views

Rsync when run in cron doesnt work. Rsync between Mac Os x Server and Linux Centos

I have a working rsync setup between Mac OS X Server and Linux Centos when run manually in a terminal. I enter the rsync command, it asks for the password, I enter it and off it goes, runs and ...
0
votes
2answers
493 views

sudo with -u via ssh -t in a crontab

I'm trying to create a cron job that uses ssh to login to a remote server and run a script as a different user. I try: * * * * * source $HOME/.keychain/$HOST-sh && sudo -u $USER ...
3
votes
3answers
2k views

Rsync failing when trying to run via cron

I am trying to set up a cron to run this command: rsync -e "ssh -i /home/ldsmp3/ssh-key -o GSSAPIAuthentication=no" -az /home/ldsmp3/public_html ...
1
vote
2answers
3k views

How does one determine active SSH and SAMBA connection counts?

I have a server that I use infrequently, so I'd like to cron a job to shutdown daily if no users are logged in via SSH and SAMBA shares. How can I determine how many active SSH connections there are, ...
1
vote
2answers
278 views

Cron job with ssh not working after boot

I have the following script collecting data about current logged users. #!/bin/bash # Collecting users login statistics CURRENT_ALL_USERS="path_to_log_file" ADMIN="path_to_admin_dir" ...
1
vote
2answers
581 views

How to add a cron via ssh?

I want to create a crontab to execute a php script, however I have to setup the cron via ssh and have absolutely no idea how to go about it. I've tried searching however the results always come back ...
0
votes
2answers
515 views

ssh - execute script in background if not already running?

How do I execute a python script in the background if it is not already running? An example use for this is on the cron.
2
votes
1answer
3k views

Intermittent rsync over ssh errors via cron w/ Ubuntu 10.04: unexplained & protocol data stream

I have a number of rsync clients trying to connect to an rsync server routinely, and they're intermittently failing with one of a couple error messages. Either: rsync: connection unexpectedly closed ...
1
vote
3answers
1k views

Crontab + Rsync - nothing happens :(

Hello the interesting line in my crontab looks like this: (edited & saved it by running crontab -e) 23 * * * * rsync -av --delete root@example.de:/var/www/ /home/niklas >> ...
0
votes
1answer
131 views

Having a Windows scheduled task to emulate cron

I'm trying to rig up a really ghetto cron job. I'm hosting a site on shared hosting (can't afford dedicated), and I need to use cron for some stuff on it. The problem is obviously cron stuff is not ...
0
votes
3answers
607 views

probems using ssh from cron

I am attempting to automate a script that executes commands on remote machines via ssh. I have public key authentication setup between the machines using ssh-agent. The script runs fine when executed ...