Rosenk,
I am using your suggestion in my script to fork out a process and run the externel command from that process. The program runs fine, but it is not killing the child after 5 seconds as expected. I running this snippet under Windows 2000. Can you please take a look at my code and let me...
skiflyer - I would recommend running it as AT/CRON job. Building scheduling into your script will just make it more complicated and possibly error prone. Why not use the tools that are built specifically for this when you can? :)
- V.
Hello Guys,
During the process of running my scripts/programs I usually open a bunch of file handles to write or read data to. I usually open the filehandle for log files at the starting of the program and close them at the end. Sometimes the script may error out or die unexpectadly. As a...
But the script hangs even when run locally. i.e. I am running the script on the server itself without the SSH part. Catching the exit code is a great idea, but if the command I run is not even releasing the script to go to the next step, I cannot get them. Thanks for the idea though.
- V.
Hello Guys,
I am trying to run a command from perl using the backticks (``) as such
$COMMANDOUTPUT = `plink.exe -ssh -pw password root\@$FQDNSERVER \"service jakartaservice start\"`;
This command conntects to a remote server via SSH and then executes a command (service...
Please forgive me if I am posting this question in the wrong forum.
I am having a strange problem with one of my servers. We use an in-house application at work which compromises of a bunch of agents installed on workstations connecting to a server through TCP port 8080 via HTTP calls. I am...
Hello Guys,
Have a question about trimming data. I have a column in a table with IP addresses as such
IP_Address
192.168.2.51
192.168.4.53
192.168.2.50
192.168.2.49
I want to take this data, remove the fourth octect and inset the new string into another table. Is there a way to do this in...
Something I noticed when I used Net::Ping was that Unix(linux) and Windows machines respond differently. As Justice41 said, it may be a difference between echo and ICMP. I worked around this by pinging the machine with echo first and then ICMP. And if both of them fail, I marked them as down...
Am not sure if this is the correct answer for your question. But I think you can bring SQL server to a single user mode by starting it with a "-m" switch.
- V.
The following functions may help you
# This function opens the directory for reading
opendir(DIR,"$YOUR_DIR")
# This function should give you all the files in the directory
@ListOfFile = readdir DIR;
#This function closes the directory
closedir(DATA);
You can read the list of files...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.