Search found 11 matches

by redro
18 May 2010 06:07
Forum: DOS Batch Forum
Topic: Find files 15 min old in a dir and send mail
Replies: 4
Views: 5834

Re: Find files 15 min old in a dir and send mail

HI Jeb,

I have successfully sending mail from XP environment but i am unable to send from Win 2003 with my above script. Any idea on it.

Thanks,
JP.
by redro
14 May 2010 06:48
Forum: DOS Batch Forum
Topic: If condition issue
Replies: 7
Views: 8972

Re: If condition issue

Hi Jeb, Now i am able to send mail if process is not running. how i have to make it as automate this script for when ever the server down then this script should be through the mail. and right now i am checking for one port with the command as @ netstat -an |find /i "9095" >pcheck.txt but ...
by redro
14 May 2010 06:19
Forum: DOS Batch Forum
Topic: Get one batch file variable in to another batch file too
Replies: 1
Views: 3798

Get one batch file variable in to another batch file too

Hi All,

I want to get one variable in both batch files.

Ex: I have declared the variable in 1.bat file the same variable and value i want to use in 2.bat
pls suggest me.

Thanks,
JP
by redro
14 May 2010 06:13
Forum: DOS Batch Forum
Topic: Find files 15 min old in a dir and send mail
Replies: 4
Views: 5834

Re: Find files 15 min old in a dir and send mail

Hi Jeb,

I have just added call.sendmail.bat in else condition and succeed in sending mail. Thanks for your assistence.

Thanks,
JP
by redro
13 May 2010 10:35
Forum: DOS Batch Forum
Topic: Find files 15 min old in a dir and send mail
Replies: 4
Views: 5834

Find files 15 min old in a dir and send mail

Hi All,

I am planning to implement batch script for if any file is sating from 15 min then i need to soot an email. Please suggest me on this.

Thanks,
JP.
by redro
13 May 2010 10:13
Forum: DOS Batch Forum
Topic: Parsing tomcat log file for Errors
Replies: 0
Views: 4726

Parsing tomcat log file for Errors

Hi All,

I am trying to monitor tomcat log to finding Error while running the server. but Tomcat never write into Catalina.log until server gets down. Is there any way to monitor log for Errors?

Please assist me.

Thanks,
JP
by redro
13 May 2010 10:08
Forum: DOS Batch Forum
Topic: If condition issue
Replies: 7
Views: 8972

Re: If condition issue

Hi Jeb Sounds good , it is working. Could you please assist me in "sending mail please i have to add the bellow code @echo off & setlocal :: set the temp file location set tempmail=%temp%\tempmail.%random%.txt :: echo the basic headers to the temp file echo To: "Scripting Test" ^<...
by redro
13 May 2010 09:36
Forum: DOS Batch Forum
Topic: If condition issue
Replies: 7
Views: 8972

Re: If condition issue

Hi Jeb, It is taking only empty value and passing condition two. FYI,... pcheck.txt consists of the following data, from that i am getting LISTENING word. If LISTENING is exists then the server is running else down then i have to soot a mail. TCP 0.0.0.0:9095 0.0.0.0:0 LISTENING Please assist me. Th...
by redro
13 May 2010 08:07
Forum: DOS Batch Forum
Topic: If condition issue
Replies: 7
Views: 8972

Re: If condition issue

hi jeb,

i have modified my code with your suggestions but i am getting else condition. In my case server is running fine.

so we have to get server is running.

Please assist me.

Thanks,
JP
by redro
13 May 2010 06:50
Forum: DOS Batch Forum
Topic: If condition issue
Replies: 7
Views: 8972

If condition issue

Hi All, I have written if condition for my requirement but it is not working please assist me. FOR /f "tokens=4*" %%a in (pcheck.txt) do ( set var = %%a) IF %var% == "LISTENING" echo Ecm is still running else echo "Sending alarm" I am getting following error: The syntax...
by redro
12 May 2010 06:09
Forum: DOS Batch Forum
Topic: Batch script for tomcat process running or not
Replies: 0
Views: 4501

Batch script for tomcat process running or not

Hi All,

I am looking for a batch script for tomcat process is running or not, if not need to send an email as a alarm and monitoring one tmp folder for files if any file stay back till 15 min then should get mail with relevant description.

Please assist me.
Thanks,
JP