Skip to main content
Bumped by Community user
edited tags
Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275
Bumped by Community user
deleted 7 characters in body
Source Link
Giacomo1968
  • 5.8k
  • 8
  • 36
  • 64

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt
* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt/Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php
Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php/Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f-f flag.

If I execute the command directly on the Terminal, it works perfectly.

How can I solve this problem? Any insights?

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f flag.

If I execute the command directly on the Terminal, it works perfectly.

How can I solve this problem? Any insights?

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f flag.

If I execute the command directly on the Terminal, it works perfectly.

How can I solve this problem?

added 14 characters in body
Source Link
IconDaemon
  • 19.7k
  • 10
  • 44
  • 60

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f flag.

If I execute the command directly on the Terminal, it works perfectly.

MayHow can I know how to solve this problem? Any insights?

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f flag.

If I execute the command directly on the Terminal, it works perfectly.

May I know how to solve this?

I have this in my crontab:

* * * * * /Applications/MAMP/bin/php/php7.2.10/bin/php -f /Users/user/Documents/radio_bycron.php 2>&1 > /Users/user/Documents/radio_bycron.php_output.txt

In /Users/user/Documents/radio_bycron.php_output.txt, there's only one line which is:

Could not open input file: /Users/user/Documents/radio_bycron.php

I have already chmod 0777 the script /Users/user/Documents/radio_bycron.php, but I am still getting this issue. The problem happens with or without the -f flag.

If I execute the command directly on the Terminal, it works perfectly.

How can I solve this problem? Any insights?

Source Link
Loading