Do anyone knows if there is a Windows Batch-file equivalent to Unix Stop on Error "#!/bin/sh -e"?
jpmartins's questions
Warning: I am no expert on building scripts, and sorry for lousy English.
In an case of generating a CSV from a database query I'm using the following commands.
CALL java.exe -classpath ... com.xigole.util.sql.Jisql -user dmfodbc -pf pwd.file -driver com.sybase.jdbc3.jdbc.SybDriver -cstring %constr% -c ; -input 42.sql -formatter csv -delimiter ; 2>>%LOGFILE% | CALL grep -v -e "SELECT right" -e "executing: " -e " rows affect" > %FicheiroR% 2>>%LOGFILE%
I'm using windows implementation of grep.
The 2>>%LOGFILE%
in both java and grep command is causing an error message indicating the file is being use by another process.
The Ugly workaround i have came up with is to put grep error redirect to a temporary %LOGFILE%.aux
java ... | grep ... 2>>%LOGFILE%.aux
type %LOGFILE%.aux >> % %LOGFILE%
del %LOGFILE%.aux
What is a better solution?
I have been seeing some strange connection issue in the production environment.
The setup has two IBM Http Server's (IHS) and a network IP load-balancer in front of them (round-robin).
One instance the system is working fine, the next requests stop arriving at the IHS. Telnet directly to port 80 of the IHS is established sucessfully, but connection to the port 80 through the IP of the load-balancer fails!
The puzzle comes next, the network admins say the load-balancer is working fine. When we finally reboot the IHS servers and request start flowing...
The situation happened three times the last month and no obvious pattern was found.
Any debug ideas?
Where can I find free technical documentation on EMC Application EXtender? This is a distributed system for "Storage, Organization, and Management of Business-Critical Information".
The IT team where I'm in has on his machines an installation of a server of this product, but I'm having troubles finding knowledge about it.
There are Microsoft Windows or Web-based clients. The administration is "easy", but i have no manual or documentation that can help me understand, monitor or fix...
In the team I am working there is a problem with logs management, we manage more then one hundred machines with heterogeneous systems, with several hundred applications.
Heterogeneous systems with different platform: windows, linux, documentum, kofax, websphere, iis, etc. All with different log formats and log location, some in the event-viewer and most in separate log files, etc.
Sometimes its hard to figure out in what machines are installed each systems, some times machines get out of free space, some times there no easy way to find where the logs are located.
Ideally logs should be accessibile very fast so we can collaborate in trouble-shutting immediately reducing down-time of anomalies. And we should keep them for some time so non obvious problems detected "a posteriori". And Free disk space must be assured, system in production environment shouldn't stop ever.
Do you know a solution and/or product that can help in a situation like this?
In the start-up of Ubuntu 9.04 the fsck fails on sda1 with status 8 signal 11.
I believe the problem was caused by the last change made. Ubuntu was running ok, the PC didn't power off on shut-down (it worked like that on WinXp). The line "apm power_off=1" was added in the end of /etc/modules
Now I want to remove that line, but how? The command line in maintenance mode the file system is in read-only mode. I tried to boot ubuntu 4 from the Live CD, but still I get the same start-up fsck fail error.
sda1 is mounted in / the file system and seems ok, i can list files and enter directories...
How can I fix this problem? Can anyone help troubleshooting this problem?
Thanks