10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I've got a Bash backup script I'm trying to run on a directory via a cron job nightly. If I ssh in and run the script manually it works flawlessly. If I set up the cron to run evertything is totally messed up I don't even know where to begin.
Basically the path structure is
... (6 Replies)
Discussion started by: wyclef
6 Replies
2. Web Development
I'm just getting my feet wet with web development, so hopefully this is a simple thing I'm overlooking, but so far I'm stumped.
I have a php script that calls Ruby via exec(). This works fine in my test environment, but when I moved it to my production environment I run into a permissions... (7 Replies)
Discussion started by: dantes990
7 Replies
3. Shell Programming and Scripting
Hi am new to perl script ..
i need some useful tutorials links to learn perl script..
and a sample script to call a php file from perl script..
thanks.. (3 Replies)
Discussion started by: senkerth
3 Replies
4. Shell Programming and Scripting
I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around it? (2 Replies)
Discussion started by: bhatia
2 Replies
5. Shell Programming and Scripting
Maybe someone here can help out.
I have a script
cat <somefile> | while read hostname
do
/usr/bin/php <some php script> $hostname
done
This script works great for the first entry in the host list. However it will only execute and ignores the loop part. It's almost as if it loses... (4 Replies)
Discussion started by: dbakyle
4 Replies
6. Shell Programming and Scripting
I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Discussion started by: CCUSmith
0 Replies
7. Shell Programming and Scripting
Hi,
I have a shell script and I'm trying to execute it from my php script. The command I'm using is:
shell_exec("Script.sh");
Is this correct? It seems to not do anything for me. Not sure if this might be a permission issue or not. I have both scripts 777 permissions. Maybe I got the... (1 Reply)
Discussion started by: eltinator
1 Replies
8. UNIX for Dummies Questions & Answers
I'm trying to set up a php script that runs via crontab on a server. I've never done anything like this before.
My questions:
1) I want the crontab to run the script everyday from 3:58 PM to 4:13 PM EST. How is that written in crontab?
2) The command I want crontab to run is: php -q... (3 Replies)
Discussion started by: colin72
3 Replies
9. Shell Programming and Scripting
I have the following cron job in the crontab.
#! /bin/bash
25 15 * * 1-5 /export/home/svittala/scripts/scpt1.sh >/dev/null 2>&1.
The problem that I am facing is - the scpt1.sh can be executed manually. But, it is not executing through CRON. Not sure what's the issue. Any hints?. Thanks.... (5 Replies)
Discussion started by: vskr72
5 Replies
10. Shell Programming and Scripting
I am more or less new to using cron, and I am trying to automate a log cleaning system I have made. The system basically cleans through WWW logs that are mounted on an NFS and creates text files for entry into a local PostgreSQL DB.
For the past year I have been running the various scripts and... (3 Replies)
Discussion started by: mntamago
3 Replies