473,699 Members | 2,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C/C++:Can't Use "ssh/rsh ... ps ..." To Windows: cygwin not allowed, application conflicts

vbscript and/or javascript is most likely what I want to use!
From a SGI and a Linux box with a known PID, how do I determine if

that process is running on a Windows computer? Please explain to me
how to do this with vbscript and/or with javascript! Which language
is better? Speed is a very important limitation, so which language
is faster in batch processing?

On unix, I would use something such as "ps -p<PID>" to determine
the activity of a process.

I am forbidden to install and use things such as cygwin because
they slow down the system too much.

rsh and ssh conflict with other applications already running on
the computer, so I can't use them.

How different is Perl from vbscript? Should I go out and buy
another book or can you give me a small script (which is easily
understandable) to do the task? You can use "ps" with "popen" in
your script. Please tell me how to run your script?

How could I use your script with C and C++? Could you give me a
simple "ps -p" like program that executes on Windows and is useable
by C/C++? Or, am I restricted to using a C/C++ "system" call with
your script?

Thank you,
Christopher Lusardi

Jul 23 '05 #1
2 1707
cl********@aol. com wrote in news:1115663056 .051784.92530
@z14g2000cwz.go oglegroups.com:

[ follow-ups set ]
vbscript and/or javascript is most likely what I want to use!
....
Please explain to me how to do this with vbscript and/or with
javascript!
Then why do you post to comp.lang.perl. misc?
How different is Perl from vbscript?


http://learn.perl.org/

Oh, by the way, *PLONK*

Sinan

--
A. Sinan Unur <1u**@llenroc.u de.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl. misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html
Jul 23 '05 #2
cl********@aol. com wrote:
vbscript and/or javascript is most likely what I want to use!
Then, do you have a Perl question, too?

[...] On unix, I would use something such as "ps -p<PID>" to determine
the activity of a process.

I am forbidden to install and use things such as cygwin because
they slow down the system too much.

rsh and ssh conflict with other applications already running on
the computer, so I can't use them.
So, do you have a Perl question, too?
How different is Perl from vbscript?
Do they have anything in common?
Should I go out and buy
another book or can you give me a small script (which is easily
understandable) to do the task? You can use "ps" with "popen" in
your script. Please tell me how to run your script?
Whos script? It is customary in this NG to post what you have so far, then
people are glad to improve your code.
Asking for someone to write the script for you is very much frowned upon.
There is perl.jobs.offer ed somewhere.
How could I use your script with C and C++? Could you give me a
simple "ps -p" like program that executes on Windows and is useable
by C/C++? Or, am I restricted to using a C/C++ "system" call with
your script?


Whos script are you talking about?

jue
Jul 23 '05 #3

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

Similar topics

2
8686
by: Robin Tucker | last post by:
I have some code that dynamically creates a database (name is @FullName) and then creates a table within that database. Is it possible to wrap these things into a transaction such that if any one of the following fails, the database "creation" is rolledback. Otherwise, I would try deleting on error detection, but it could get messy. IF @Error = 0 BEGIN SET @ExecString = 'CREATE DATABASE ' + @FullName EXEC sp_executesql @ExecString
3
2137
by: Daniel | last post by:
right now i have some sql server tables that i search for a value w/ a key each time a .aspx is hit. is there any way i can just have the first hit to the .aspx select all the entries from the key/value table in to some kind of hash table so that subsequent hits to the .aspx get the data from the hash table instead of the database? e.g. is there any way to share a hash table between aspx sessions? can application variable do this or is...
119
4591
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see, http://www.alistapart.com/articles/betterliving/ I read on http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/netfxcompat.asp It said they changed stuff like this
6
2557
by: Kevin Mitchell | last post by:
I have an NT shared hosting account, but the provider names the script/write folder cgi-bin. I want to place DLLs in the cgi-bin directory and get them to work in my Web applications. What do I need to do to get my application to look for DLLs in the cgi-bin folder instead of the default bin folder? Can I expect success in getting DLLs to work in this way -- or, do I need to upgrade from a shared hosting to a dedicated server account?
4
1798
by: Larry Smith | last post by:
Hi there, Don't know if I picked the correct NGs or not but maybe someone can steer me in the right direction. Does anyone know if a class exists to capture the same info now wrapped in "InitializeComponent()". I want to capture all form details for a given form at design time (properties and controls) but I can't find anyway to do it. Note that reading a form's ".resx" files won't do either (it's only good for localized forms but in any...
7
24854
by: vvkl | last post by:
I have readed a example code from MSDN about FormsAuthenticationTicket calss, but there's a line I can't understand : 'strRedirect = Request;' What's the mean in which square brackets? Thank you! A Chinese student.
6
2327
by: Army1987 | last post by:
Reliable sources (whose names I'm not allowed to disclose) told me that on the next version of the Deathstation (version 10000, or DS10K) an integral type (they didn't tell which) will have a odd parity bit, that is a bit which is set if an even number of value/sign bits are set, and unset otherwise. If the parity is wrong, the representation is a trap, and they didn't tell me how it is handled (and they won't even have to tell this when...
0
8613
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,...
0
9172
Oralloy
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...
0
9032
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 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...
1
8908
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,...
0
8880
tracyyun
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...
1
6532
isladogs
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...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
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...

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.