473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

shell_exec() works randomly

In another post I told about PHP not being able to create dates earlier than
1970, so until I can get PHP to do so, I am using a small perlscript to do it.
It looks like this:

// $in[date]*is something like "1943-10-12";

$unixtime = shell_exec("bin/converttime.pl $in[date]");

Problem is, this fails once ever twenty times or so - shell_exec() doesn't
return anything. This is true of another place where I use shell_exec() to run
/usr/bin/cal so I don't think the problem is with the application I am trying
to execute.

Could it be a memory issue?

--
Sandman[.net]
Jul 17 '05 #1
0 1555

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve | last post by:
Hi, I'm trying to 'ssh' into another machine, run a small script and fetch it's output, using shell_exec(). The problem is, it takes AGES to run ssh and I don't know what's happening. If I try...
8
by: Good Man | last post by:
Hi there If I enter the following at the command line, I successfully get an email sent to the correct name/email: php /var/www/html/admin/adminscripts/welcome-cli.php 'Me' 'me@me.net'
2
by: mattrapoport | last post by:
I have a php page that needs to call a batch script. My test script has one line: echo test. I am running Win2003 Server, IIS, and php 4.3.10. When I first tried running my php script I got...
6
by: jonathan.beckett | last post by:
Hi all, We have PHP 4 installed on Windows 2003 with Apache 2, and the shell_exec has mysteriously stopped working - it hangs the page rather then returning anything. To check it out, I tried...
0
by: Don | last post by:
Hi, I have a problem with the special characters on the function shell_exec (under Linux Debian with php 4.3.10-16): $msg = '"'."Léà t'es où?".'"'; $output = shell_exec('java myClass'.'...
3
by: Paul F. Johnson | last post by:
Hi, I'm trying to create a zip file from some pdfs and have code similar to this $id=$_GET; $fn = array("a", "b", "c", "d"); chdir('../downloads'); // the php file is in /php $files =...
1
by: graphman | last post by:
I have a perl script that I'm calling using php's shell_exec that uses an expect module to go to another system to pull tiff files. The php perl combination works great when I launch from the...
0
by: Akkad | last post by:
hi, i am having problem using shell_exec() function: <code> shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -w >...
2
by: syringa | last post by:
hi , iam using php on linux platform. when i use shell_exec("pwd") , it properly shows me the directory iam in, but when i give shell_exec("ls -l") , it doesnt work . CAn anyone help me in this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.