Hi
I have a shell script, it run ok if executed from the path it is located at but doesnot run when the same is tried through cron-job.
can someone help me please.
regards
gaurav shrinivas
Email address removed (8 Replies)
Hi
I have created a shell script which uses three nested loops. When the cronjob is running the script there is a for loop which call a function which has two nested for loops. It is going into the function but the for loop in the function is not running. Can someone pleasae give me a solution... (9 Replies)
hi,
I have a shell script which has a sql plus code and unix if else condition.
The file is located at root.I logged in as a root user and i have all permissions. I tried to set up a cron job so that the script need to run every minute.the script is running successfully without any problem. I... (2 Replies)
Hello everybody,
I'm trying to run a shell script in crontab file. But anyhow it's not getting executed. Following is the command that I've used in crontab.
30 07 * * * . ./.cronprofile;/om/reports/reportscripts/jitu/prod/prd_pre_to_post.sh
35 11 * * * .... (3 Replies)
I'm trying to run "SAR -i 60" under
#/var/spool/cron/crontabs/SYS
0,10,20,30,40,50 0-6 sh -c "/usr/lib/sa/sa1 60 10 &"
55 23 * 0-6 /usr/lib/sa/sa2 -i 900 -A
machine is not running above cron job under "sys" at all.
This suppose to run every minutes and all time in 24 hours. When day... (6 Replies)
Hi,
having problem running my cronjob, need the script to run every monday. And the error i'm getting is "No such file or directory", i've tried to change the env to /bin/bash and also /usr/bin/sh but both failed. Need help here. tq
0 0 * * 1 /bin/bash /home/omc/munir/raccli_rnc.sh
Rgds... (3 Replies)
Hi,
I have a .ksh script which updates the database. The script is running fine manually but it is not running through cron.All the file permissions are fine.
The script contents are as below:
#!/usr/bin/ksh
ddate=`date +%Y%m%d`
echo $ddate
nohup sqlplus crm/crm @db_state_sync.sql >>... (3 Replies)
hello,
i recently switched to a new ec2 box and transferred the cronjobs from the old box. For some reason one of the scripts won't work but it runs manually from the command line. I've read from previous threads it might be an environment issue but I added a line with the path to the script... (2 Replies)
I have created a test cronjob using crontab -e that runs a script at /home/cmccabe/cron.sh. I am not sure the script doesn't run though I can call it in terminal. Thank you :).
crontab -e (run script sat at 6:10pm)?
10 18 * * 6 /home/cmccabe/cron.sh
contents of cron.sh
#!/bin/bash... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT PHP
phar.interceptfilefuncs
PHAR.INTERCEPTFILEFUNCS(3) 1 PHAR.INTERCEPTFILEFUNCS(3)Phar::interceptFileFuncs - instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions
SYNOPSIS
finalpublicstatic void Phar::interceptFileFuncs (void )
DESCRIPTION
instructs phar to intercept fopen(3), readfile(3), file_get_contents(3), opendir(3), and all of the stat-related functions. If any of
these functions is called from within a phar archive with a relative path, the call is modified to access a file within the phar archive.
Absolute paths are assumed to be attempts to load external files from the filesystem.
This function makes it possible to run PHP applications designed to run off of a hard disk as a phar application.
PARAMETERS
No parameters.
RETURN VALUES EXAMPLES
Example #1
A Phar.interceptFileFuncs(3) example
<?php
Phar::interceptFileFuncs();
include 'phar://' . __FILE__ . '/file.php';
?>
Assuming that this phar is at /path/to/myphar.phar and it contains file.php and file2.txt, if file.php contains this code:
Example #2
A Phar.interceptFileFuncs(3) example
<?php
echo file_get_contents('file2.txt');
?>
Normally PHP would search the current directory for file2.txt, which would translate as the directory of file.php, or the current direc-
tory of a command-line user. Phar.interceptFileFuncs(3) instructs PHP to consider the current directory to be phar:///path/to/myphar.phar/
and so opens phar:///path/to/myphar.phar/file2.txt in the above example code.
PHP Documentation Group PHAR.INTERCEPTFILEFUNCS(3)