472,340 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Running program from diagnostics.process never completes.

Hi,

I am using system.diagnostic.process with the intention of running a
program to communicate with a unix box:

The program is "PuTTY", running from a batch script. I know it works
because if i manually trigger the batch, the results can be seen on the
unix side.

Running the batch script from an .aspx page however makes the process
hang indefinately, and the program does not successfully complete. I
know that the batch can be successfully called (by doing simple 'echo >
txt' type things), and also that any debug msgs BEFORE triggering the
program gets written to the text file, but not any debug msgs after.

I have tried using process.WaitForExit(5000) to specify a timeout, which
breaks the hanging process, but the program still does not run.

I have also tried controlling the StdIn and StdOut, setting
useShellExecute to "False", similar to this URL:
http://www.devx.com/dotnet/Article/7914/0/page/5
The hanging problem still occurs.

NB: I do not know if this problem is true for a process such as
'notepad' that would not need communication to another machine.
I am not administrator of the .net box, and I deal with it remotely, so
I cannot try to monitor a program local to the .net machine such as
notepad. (if any one can suggest a 'native' program i could trigger that
would somehow give me feedback, like creating a text file etc. then it
might help to isolate the issue further.)

Thanks so much for reading through all this!!!
Any help or suggestions on what causes the hanging would be wonderful.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #1
0 1256

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

Similar topics

2
by: UJ | last post by:
I've got a program that will do some updates to the system. During that time, if a certain program, called a.exe is running, I want to stop the...
1
by: Doug Wyatt | last post by:
So I'll preface this with the fact that I'm a UNIX developer by training and have just recently gotten in to C# development on Windows. I'm...
0
by: marccruz | last post by:
Given an instance of System.Diagnostics.Process, how can I get the parent process o Given an instance of System.Diagnostics.Process, how can I...
6
by: gizmo | last post by:
I have a requirement to initiate more than one instance of an application using the filenames. (the example below will start two instances of MS...
1
by: Heiko Besemann | last post by:
Dear group, I created an aspx page using System.Diagnostics.Process() to launch "tracert" from shell and redirect output to Response.Output which...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the...
5
by: Rob R. Ainscough | last post by:
I'm using the Diagnostics.Process approach to shelling out run the following: C:\Windows\System32\MSIEXEC.EXE /x...
3
by: LoDawg | last post by:
I am using the system.diagnostics.process.start command to launch an excel template. Once open the user has the option to create a new template...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using...
2
by: JustinCase | last post by:
Hi, I'm trying to capture the standard output from a program called cURL. Running the program from the command line as such: >curl...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

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.