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.WaitFor Exit() 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? 0 1330 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 used to record requests: a user can
send their personal ID to the web service, and this is stored in a database.
Is is possible to launch this request from a hyperlink? What other options
have I got in terms of launching this service from a...
|
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 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...
|
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" \
--update_classes_and_exit --no_splash -s \
--projectpath$(dir $(PTF)); \
|
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 the same Cygwin configuration on multiple
Windows 2003 servers)
Each first time that I use ssh2_exec() it works fine. I can read from
|
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 accesses DB2
database on windows platform hence I installed cygwin but I'm unable to
connect to database as it fails with the error message.
$ db2
DB21061E Command line environment not initialized.
| |
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 seconds:
Check to see if each of the other executables are running or not. If
they are not running, it should load them.
For this purpose, I am planning the following:
|
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 same file?
Here is my situation:
I have an application that when launched does a check whether or not
|
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.
Creating an environment suitable for GMP programming.
1) Create 'cygwin' environment (see below)
2)add GMP to the cygwin directory (see below)
|
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 resolve it to a
cygwin form. Rather they _append_ it to the current directory,
resulting at best in a monster '/cygdrive/c/whatever/f/foo/bar'.
It's all being developed under cygwin currently (so it is a kind of
mixed environment), but I would...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |