XFileSharing Pro - automatically add the crontab command "&&"

Message
Author
tubs
Posts: 5
Joined: Dec 05, 2014 6:32 am

automatically add the crontab command "&&"

#1 Postby tubs » Oct 24, 2016 7:33 am

hi
Install XFileSharing Pro 2.4.1 automatically add crontab command with "&&" garbled

With "&&" crontab command is correct?
please help me
thank you

Code: Select all

Main server
[root@vultr ~]# crontab -u apache -l
*/1 * * * * cd /var/www/cgi-bin && ./transfer.pl 2>&1 >/dev/null
*/10 * * * * cd /var/www/cgi-bin && ./cron.pl 2>&1 >/dev/null
0 23 * * * cd /var/www/cgi-bin && ./cron_deleted_email.pl 2>&1 >/dev/null


File server
[root@vultr ~]# crontab -u apache -l
*/1 * * * * cd /var/www/cgi-bin && ./transfer.pl 2>&1 >/dev/null
With "&&" crontab command is correct?
please help me
thank you
Last edited by tubs on Oct 24, 2016 7:39 am, edited 1 time in total.

tubs
Posts: 5
Joined: Dec 05, 2014 6:32 am

#2 Postby tubs » Oct 24, 2016 7:36 am

XFileSharing Pro 2.4.1

main server
[root@vultr ~]# crontab -u apache -l
*/1 * * * * cd /var/www/cgi-bin && ./transfer.pl 2>&1 >/dev/null
*/10 * * * * cd /var/www/cgi-bin && ./cron.pl 2>&1 >/dev/null
0 23 * * * cd /var/www/cgi-bin && ./cron_deleted_email.pl 2>&1 >/dev/null


file server
[root@vultr ~]# crontab -u apache -l
*/1 * * * * cd /var/www/cgi-bin && ./transfer.pl 2>&1 >/dev/null


With "&&" crontab command is correct?
please help me
thank you

tubs
Posts: 5
Joined: Dec 05, 2014 6:32 am

#3 Postby tubs » Oct 24, 2016 7:49 am

Code: Select all


[root@vultr ~]# cat /var/spool/mail/root
From [email protected]  Mon Oct 24 01:10:03 2016
Return-Path: <[email protected]>
X-Original-To: apache
Delivered-To: [email protected]
Received: by vultr.guest (Postfix, from userid 48)
        id B762D4CAB; Mon, 24 Oct 2016 01:10:03 +0000 (UTC)
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <apache@vultr> cd /var/www/cgi-bin && ./transfer.pl 2>&1 >/dev/null
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=apache>
X-Cron-Env: <USER=apache>
Message-Id: <[email protected]>
Date: Mon, 24 Oct 2016 00:59:04 +0000 (UTC)

Error while requesting API: JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at Modules/XFSQueue.pm line 59

Error while requesting API: JSON
text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at Modules/XFSQueue.pm line 59

cat /var/spool/mail/root
Inside /var/spool/mail/root , I get this error
please help me
thank you

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Oct 24, 2016 12:09 pm

Yes, "&&" should be there.

As for JSON error - seems there's some other problem. Please create support ticket about that, we will help.

tubs
Posts: 5
Joined: Dec 05, 2014 6:32 am

#5 Postby tubs » Oct 24, 2016 5:08 pm

admin wrote:Yes, "&&" should be there.

As for JSON error - seems there's some other problem. Please create support ticket about that, we will help.

Thanks admin
I have already submitted a ticket