Discussions Populaires Dans la Communauté FTPS

S'abonner

Questionnez la Communauté


Ask any professional question and get answers from other specialists.

Stream language
Umair Khan's image
La question a été ajoutée par Umair Khan Web Developer Innovative Designers
Depuis 7 années
Réponses:
1
Adeptes:
Vues:
76
Vote Count:
0
La réponse doit contenir un minimum de 25 caractères.
mohammed al shareif's image
La question a été ajoutée par mohammed al shareif Team Leader Beecell
Depuis 10 années

Why does FTP and CRON job not working?‎

Hello , when i call the PHP script from browser it's working fine , but when i run it as a cron script its not working . cron script contains FTP commands as‎ ... Voir Plus

Réponses:
7
Adeptes:
Vues:
1011
Vote Count:
1
La réponse doit contenir un minimum de 25 caractères.
Mohd. Mahmood Hasan Khan's image  
La répondre a été ajoutée par  Mohd. Mahmood Hasan Khan, Technology - Consultant, Deloitte
Depuis 10 années

Hi, Can you share your sample script that you have written and contains ftp commands in it while executing via cron job? That will help us better understand the issue.   ... Voir Plus

Signaler CV
Manish Patel's image  
La répondre a été ajoutée par  Manish Patel, Senior Technical Lead, Fulcrum Worldwide Software Pvt. Ltd
Depuis 10 années

Best way to execute cron script is to create .sh file, set it with crontab -e.    Do not forget to..   - Restart cron service - Make sure you have +x permission set for . ... Voir Plus

Signaler CV
Muhammad Majid Saleem's image  
La répondre a été ajoutée par  Muhammad Majid Saleem, Senior PHP Developer / Project Manager, SwaamTech
Depuis 10 années

If your script is running perfectly fine from web browser and not working using cron job, that means your cronjob is definitely not correctly setup.   You should confirm ... Voir Plus

Signaler CV
Asad Ali  Khan's image  
La répondre a été ajoutée par  Asad Ali Khan, Software Engineer, Urban Unit Lahore
Depuis 6 années

There are a few reasons why your FTP application could be slow or frequently disconnecting. This could be due to your passive settings. You can check this by doing the fo ... Voir Plus

Signaler CV
Sandeep -'s image  
La répondre a été ajoutée par  Sandeep -
Depuis 10 années

Hello Mohammed,   If you didn't  get the the answer yet try this. It will run your PHP Script from browser * * * * * wget -O- http://www.sitename.ccom/filename.php & ... Voir Plus

Signaler CV
Asif Ali M's image  
La répondre a été ajoutée par  Asif Ali M, Project Lead, LiquidHub
Depuis 10 années

As Majid has already pointed out that the cron might not be set with proper syntax.   The other reason might  be user account permission. Please be aware when you run you ... Voir Plus

Signaler CV
Atif Majid's image  
La répondre a été ajoutée par  Atif Majid, Senior PHP Programer/Team Lead, RedApple Apartments AB
Depuis 10 années

1) Can you connect to the target FTP server from your local machine? 2) Are the ports between your server and the target machine open for FTP communication.3) Try to run ... Voir Plus

Signaler CV
mohammed al shareif's image  
La répondre a été ajoutée par  mohammed al shareif, Team Leader, Beecell
Depuis 10 années

yes sure this is my script ///------------- $ftp_server = "hidden"; $ftp_user = "hidden"; $ftp_pass = "hidden"; // $date=time()-24*60*60; $d ... Voir Plus

Signaler CV