-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified linux-app-logger - now it updates file corresponding curdate…
… itself Made corresponding changes in other scripts.
- Loading branch information
Leonid Beynenson
authored and
Leonid Beynenson
committed
Mar 23, 2015
1 parent
7cf8be7
commit b349b94
Showing
7 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
ps ax | fgrep " python ./logger.py winlog" | fgrep -v grep | ||
ps ax | fgrep " python ./logger.py " | fgrep -v grep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
ls -1 /home/leonid/bin/linux-app-logger/winlog_* | grep "/winlog_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]$" | tail -n1 | ||
ls -1 /home/leonid/worklog/winlog_* | grep "/winlog_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]$" | tail -n1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
ps ax | fgrep "python ./logger.py winlog" | fgrep -v grep| sed -e "s/^.*\(winlog_[0-9_-]\+\) .*/\1/" | while read a; do echo "open $a"; path=/home/leonid/bin/linux-app-logger/$a; cat $path; echo "===================="; tail -f $path; done | ||
ps ax | fgrep "python ./logger.py " | fgrep -v grep| sed -e "s/^.*\(winlog_[0-9_-]\+\).*/\1/" | while read a; do echo "open $a"; path=/home/leonid/worklog/$a; cat $path; echo "===================="; tail -f $path; done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
cd /home/leonid/bin/linux-app-logger | ||
#./logger.py winlog_`ddate` 30 stopfile 2>>2_stream.log | ||
./logger.py winlog_`date +"%Y-%m-%d"` 15 2>>2_stream.log | ||
./logger.py ~/worklog 15 2>>2_stream.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
ps ax | fgrep "python ./logger.py winlog" | fgrep -v grep| sed -e "s/^ *\([0-9]\+\) .*/\1/" | while read a; do echo "killing $a"; kill -9 $a; done | ||
ps ax | fgrep "python ./logger.py " | fgrep -v grep| sed -e "s/^ *\([0-9]\+\) .*/\1/" | while read a; do echo "killing $a"; kill -9 $a; done |