10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have 3 individual scripts to perform the task . 2nd script should run only after the 1st script and 3rd script must run only after first 2 scripts are executed successfully.
i want to have a single script that calls all this 3 scripts .this single script should execute the 2nd script... (1 Reply)
Discussion started by: Rahul619
I need to run a script (from cron) that runs a second script.
What worries me is that second script, when run from bash, upon finishing doesn't return to bash unless I press the 'Enter' key.
I presume that's because last command in that script ends with &
Could that be a problem for cron?... (2 Replies)
Discussion started by: orange47
3. Shell Programming and Scripting
Hi there, I am struggling to try and work out what is going wrong with a cron job i have running daily which opens up an imap mailbox and extracts a rar file to a directory on the web server. The script works ok when run manually, and when it is running from cron, I can see that it opens up the... (2 Replies)
Discussion started by: nicky77
4. Shell Programming and Scripting
I have 3 scripts namingly 1X 2X and 3X.
I have one directory ABC created which contains some 40 sub directories.
I have one input file in the below format.The input file resides in ABC directory.
subdirectoryname2... (1 Reply)
Discussion started by: RSC1985
5. Shell Programming and Scripting
I would like to run two scripts using cron one immediately after the other. Is it enough to put them one after another in the cron file to run at the same time, or will this cause them to run concurrently? (4 Replies)
Discussion started by: 3210
6. Shell Programming and Scripting
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
7. UNIX for Dummies Questions & Answers
I wrote a .sh script to run 5 php scripts. The problem is that it's running 1 then 2 then 3 in that order .... I want it to execute all 5 at ONCE....
nohup php /home/script1/script1.php && nohup php /home/script2/script2.php && nohup php /home/script3/script3.php && nohup php... (1 Reply)
Discussion started by: holyearth
8. Shell Programming and Scripting
PHP user here. I'm using an endless loop to perform to mimic a cron. The script does something every 20 minutes. It sleep()s in the meantime.
I have various checks that ensure that only instance can run, including a "gentleman agreement" locked file.
However, I'd like to make sure... (2 Replies)
Discussion started by: jjshell
9. UNIX for Dummies Questions & Answers
I've configured a server with Debian Etch 4.0. I followed these instructions:
Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch -- Debian Admin
But when I try to launch a php script with phpinfo() in my browser, It showed me the download manager window.(i.e. wanna to... (9 Replies)
Discussion started by: mjdousti
10. UNIX for Dummies Questions & Answers
What are the rules of calling shell scripts in cron.
How do I go about setting up the correct PATHS that calls a script, which then calls another sub script all of which has to retain the orginal PATHS and VARS that I've set up in first script
Well Cron calls a script... (3 Replies)
Discussion started by: cfoxwell
PHP_STRIP_WHITESPACE(3) 1 PHP_STRIP_WHITESPACE(3)
php_strip_whitespace - Return source with stripped comments and whitespace
string php_strip_whitespace (string $filename)
Returns the PHP source code in $filename with PHP comments and whitespace removed. This may be useful for determining the amount of actual
code in your scripts compared with the amount of comments. This is similar to using php -w from the commandline.
- Path to the PHP file.
The stripped source code will be returned on success, or an empty string on failure.
This function works as described as of PHP 5.0.1. Before this it would only return an empty string. For more information on this
bug and its prior behavior, see bug report #29606.
// PHP comment here
* Another PHP comment
// Newlines are considered whitespace, and are removed too:
The above example will output:
echo php_strip_whitespace(__FILE__); do_nothing(); ?>
Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement.
PHP Documentation Group PHP_STRIP_WHITESPACE(3)