15,913,722 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Strider87 (Top 8 by date)
Strider87
28-Sep-13 1:07am
View
Hello,
Really sorry for disturbing, It's my bad..I need to convert 3 to 3 hours.
Strider87
28-Sep-13 1:07am
View
Hello,
Really sorry for disturbing, It's my bad..I need to convert 3 to 3 hours.
Strider87
13-Sep-13 17:10pm
View
Instead of "+2 hours". I need to take that value from user.
Strider87
12-Sep-13 15:36pm
View
#!/bin/bash
echo "Enter e-mail of requester:"
read fname1
echo "Enter number hours to enable debug :"
read fname2
#shopt -s nullglob
#rm -rf /rezsystem/rezadmin/Log4J/node1/log4jstat.txt
#echo enable > /rezsystem/rezadmin/Log4J/node1/log4jstat.txt
#Debug enable start
#cp /rezsystem/rezadmin/Log4J/Logs/Debug_Mode/Jboss_Conf/node1/log4j.xml /rezsystem/jboss/jboss1/server/default/conf
#cd /rezsystem/jboss/jboss1/server/default/conf
#chown rezuser log4j.xml
#chgrp rezuser log4j.xml
#chmod 775 log4j.xml
#find /rezsystem/jboss/jboss_1/server/default/deploy/ -name "log4j.xml" -type f -exec sed -i 's/priority value="WARN"/priority value="DEBUG"/' {} \;
#find /rezsystem/jboss/jboss_1/server/default/deploy/ -name "log4j.xml" -type f -exec sed -i 's/param name="Threshold" value="WARN"/param name="Threshold" value="DEBUG"/' {} \;
echo "" | mail -s "This is to inform that ONS has enabled DEBUG in Node2 log4j - "$(hostname) $fname1 < /tmp/email.txt
#Debug enable stop
#Jboss Start
#NOWDATE=$(date +"%m-%d-%Y_%H%M")
#zip /var/log/rezg/sys/server1.log_$NOWDATE.zip /var/log/rezg/sys/server1.log
#zip /var/log/rezg/app/rezg_app1.log_$NOWDATE.zip /var/log/rezg/app/rezg_app1.log
#cd /rezsystem/jboss/jboss1/server/default
#rm -r -f work/
#rm -r -f tmp/
#cd /rezsystem/jboss/jboss1/bin
#./run.sh &
#Jboss started
sleep ${fname2}m
#Debug disable start
#cp /rezsystem/rezadmin/Log4J/Logs/Live_Mode/Jboss_Conf/node1/log4j.xml /rezsystem/jboss/jboss1/server/default/conf
#cd /rezsystem/jboss/jboss1/server/default/conf
#chown rezuser log4j.xml
#chgrp rezuser log4j.xml
#chmod 775 log4j.xml
#find /rezsystem/jboss/jboss1/server/default/deploy/ -name "log4j.xml" -type f -exec sed -i 's/priority value="DEBUG"/priority value="WARN"/' {} \;
#find /rezsystem/jboss/jboss1/server/default/deploy/ -name "log4j.xml" -type f -exec sed -i 's/param name="Threshold" value="DEBUG"/param name="Threshold" value="WARN"/' {} \;
#echo disable > /rezsystem/rezadmin/Log4J/node1/log4jstat.txt
#Debug Disable stop
#Jboss Start
#NOWDATE=$(date +"%m-%d-%Y_%H%M")
#zip /var/log/rezg/sys/server1.log_$NOWDATE.zip /var/log/rezg/sys/server1.log
#zip /var/log/rezg/app/rezg_app1.log_$NOWDATE.zip /var/log/rezg/app/rezg_app1.log
#cd /rezsystem/jboss/jboss1/server/default
#rm -r -f work/
#rm -r -f tmp/
#cd /rezsystem/jboss/jboss1/bin
#./run.sh &
echo "" | mail -s "OnS has disabled Debug for Node 1 - "$(hostname) $fname1
Above is my code. Since this it has a sleep command during the execution of this script it holds without coming to the prompt. so at that time no one can work on that terminal. So I need run this sleep process in background.
Strider87
11-Sep-13 18:01pm
View
Thank you for your solution but I need to run this sleep process in background of the program.
Strider87
4-Apr-11 13:25pm
View
Ty for ur kind advice..I just started Blend...
Strider87
12-Jun-10 3:57am
View
thnx sandeep. u helped me once again.
Strider87
5-Jun-10 4:09am
View
thanx sandeep
Show More