473,231 Members | 1,598 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,231 software developers and data experts.

Launching a cygwin utility from within a Windows Service

Ok, I'm trying to write a basic scp scheduler, which will occasionally
scan a directory, and use cygwin's scp.exe to copy the files to a Unix
box. After various problems, the set up I've got now is this:

A Console application, which accepts the file as a parameter, and
launches the scp utility via the Process.Start() command. If I call
this Console from a command line, or from a dos-prompt, the file
transfers correctly, without need of input from me, as the id_dsa keys
are set up correctly.

If I call the same console application from a Windows Service, even
though the parameters get passed through correctly, the process never
gets past the Process.WaitForExit() statement. It does launch the scp
utility, however, as it shows up in Task Managers process list. The
Windows Service is set up to run under my domain account, the same I
use to log in every day.

Does the Windows Service not have the same environment variables I have
set up? Why should it not run correctly when called from a Windows
service, if it runs when called from the command line?

Jul 21 '05 #1
0 1291

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

Similar topics

2
by: Steve Barker | last post by:
Hi guys, I have written a web service, but I want clients to be able to consume it without having the .NET framework installed on their PC. The web service doesn't return any values; it is just...
0
by: darknessfish | last post by:
Ok, I'm trying to write a basic scp scheduler, which will occasionally scan a directory, and use cygwin's scp.exe to copy the files to a Unix box. After various problems, the set up I've got now...
3
by: Michael | last post by:
Hello, I have a small problem running a make script under cygwin on a PC with windows XP. The following script: all: @echo Creating ... "c:/altera/quartus51/sopc_builder/bin/sopc_builder" \...
0
by: nick | last post by:
Hello, I'm having troubles with ssh2_exec() agains SSH on Windows 2003. I can connect from Linux/Apache2/Php5 to a Cygwin SSH service running on Windows 2003 server. (Actually, tested with...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
0
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
5
by: mgierdal | last post by:
I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ foo/bar'. I get the original dirpath from tkFileDialog.askdirectory in a Windows form and none of os.path.* functions seem to...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...

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.