Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-03-17 08:01:02
Point:500 Replies:6 POST_ID:828572USER_ID:11059
Topic:
PHP Scripting Language;Linux;JavaScript
I switched to VPS hosting with Cpanel trial version. It means the Cpanel only have 15-day trial day for users. If keep using it, I need to apply Cpanel license.
Now I don't think I need Cpanel except its cron-job function.
So now I try run cron-job on linux command
by crontab -e
and then add my testing cron-job in the file such as follows
55 10 * * * php /home/myame/pubic_html/php/time.php >/home/,yname/public_html/php/time.log
Save the file and then crontab -e again, I can see my new testing cron-job
But I can NOT get the time.php running since I can NOT find out my time.log after
the cron-job schedule time. Why ?
How can I know my adding cron-job is running or NOT where log file will save the information about that cron-job done or not .
Please advise
Ducan
Now I don't think I need Cpanel except its cron-job function.
So now I try run cron-job on linux command
by crontab -e
and then add my testing cron-job in the file such as follows
55 10 * * * php /home/myame/pubic_html/php/time.php >/home/,yname/public_html/php/time.log
Save the file and then crontab -e again, I can see my new testing cron-job
But I can NOT get the time.php running since I can NOT find out my time.log after
the cron-job schedule time. Why ?
How can I know my adding cron-job is running or NOT where log file will save the information about that cron-job done or not .
Please advise
Ducan
Expert: Ray Paseur replied at 2024-03-19 07:28:03
Another bad grade from @duncanb7. You're beginning to get a reputation as someone who will give unexplained bad grades. Perhaps we should focus our time at EE on other questions?
Accepted Solution
Expert: Gerwin Jansen replied at 2024-03-17 14:19:41
500 points AVERAGE
Don't close yet: your 'php' command is not known to cron as cron has now knowledge of paths, variables etc. So if you change php to /path/to/php (and fill in the correct path) you would probably get output. To see if you get any errors, change your existing command like this:
55 10 * * * php /home/myame/pubic_html/php/time.php 2>&1 > /home/myname/public_html/php/time.log
This will also redirect errors to your time.log file.
55 10 * * * php /home/myame/pubic_html/php/time.php 2>&1 > /home/myname/public_html/php/time.log
This will also redirect errors to your time.log file.
Author: duncanb7 replied at 2024-03-17 10:32:45
I've requested that this question be deleted for the following reason:
No one reply , probably the detail is not clear and need to re-write
No one reply , probably the detail is not clear and need to re-write
Author: duncanb7 replied at 2024-03-17 09:59:09
export or tzselect can NOT change the timezone permanently
Why ?
When type date command it alway show Mar 18 19:00:00 MZK 2013
Why ?
When type date command it alway show Mar 18 19:00:00 MZK 2013
Author: duncanb7 replied at 2024-03-17 09:57:20
No , it is time zone issue on Linux
Now I am using CentoS 6.3 OS,
but I could not change back the timezone from MZK(moscow) to Ameria/New_York
even I used command of expert, it is still MZK timezone time
Whatever I change, for example, tzselect, expert, the time ZOne is always MZK(moscow)
Where is timeszone variable is permanantly stored in linux, is it on .bash_profile ?
Please advise
Duncan
Now I am using CentoS 6.3 OS,
but I could not change back the timezone from MZK(moscow) to Ameria/New_York
even I used command of expert, it is still MZK timezone time
Whatever I change, for example, tzselect, expert, the time ZOne is always MZK(moscow)
Where is timeszone variable is permanantly stored in linux, is it on .bash_profile ?
Please advise
Duncan
Expert: farzanj replied at 2024-03-17 08:33:17
Why is there a comma
/home/,yname
Just little odd.
/home/,yname
Just little odd.