473,327 Members | 2,071 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,327 software developers and data experts.

Run command line php remotely

5
I have a command line php (not mine, from cartocamp) which i can run on command line by issuing the following commands:
cd C:\ms4w\apps\cartoweb3

php cw3setup.php --clean

php cw3setup.php --install --config-from-file path_conf_file/conf_file.properties
What it does is clean the folder system and setup a map application again.
I wrote php code that creates this map application, creates the config_file and a batch file. I then wrote the following php command to run this application but it doesnt work and i have no idea why.
[PHP]$run = pclose(popen('start /b '.$batchbase.'\\'.$dir.'.bat', 'r')); [/PHP]
May you help me please.
Jan 31 '08 #1
1 2081
Try this:
Expand|Select|Wrap|Line Numbers
  1. passthru('command /c '.$batchbase.'\\'.$dir.'.bat');
If it works remove the 'command /c '. part because it's not really needed, but it will help show some errors.
Jul 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Tom | last post by:
Is it possible to create a button that will gzip a file from a web page ?? The have the page display another button, when the gzip is complete ?? The button should allow us to issues a system...
3
by: JDB | last post by:
As a Sys Admin, I was wondering - if I have admin rights to a Win2k machine that is hosting SQL Server 2000, do I have the ability using any command-line tools such as OSQL or ISQL to add, delete,...
8
by: MarkE | last post by:
I'm sure someone else has posted a similar problem but I can't find it, nor the solution... I have a python script which accepts a command line argument. E.g. python.exe myscript.py -n Foo I...
4
by: martijn | last post by:
Hi, I am trying to create an application for our servicedesk. With this application the servicedesk members, can remotely image an workstation. What am looking for is a command line that...
2
by: Tim | last post by:
Hi, I want to run some command line instructions from within my C# windows forms application. Basically when the application closes I want to logoff the session if it was started remotely. So...
16
by: diffuser78 | last post by:
I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action....
6
by: pvadhi07 | last post by:
Hi I am trying to execute a system command in my "C" code running on a Ubuntu Linux machine. The code is supposed to open a secure shell connection to another machine, change directories to a...
3
by: cc50818j | last post by:
Hi, Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user...
10
by: Justin | last post by:
We have a simple shell script called testsp.sh (located at /home/ userid) Within the shell script, the following command is called: db2 -tvf callsp.sql When the shell script is run in command...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.