10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a log file which have a date and time at the start of every line.
I need to search the log file starting from a specific time to the end of file.
For example:
Starting point: July 29 2018 21:00:00
End point : end of file
My concern is what if the pattern of `July 29 2018 21:00:00`... (3 Replies)
Discussion started by: erin00
3 Replies
2. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
3. Windows & DOS: Issues & Discussions
I created a vdmk image from a system that was having hardware issues using:
(How to create a Virtualbox image from a physical partition by one command)
sudo dd if=/dev/sda | VBoxManage convertfromraw stdin MyLinuxImage.vmdk 120034123776 --format VMDK
the next thing I did was install VM... (0 Replies)
Discussion started by: metallica1973
0 Replies
4. Shell Programming and Scripting
I know you can supply the find command with an option to find files > than N days old. Is there some way to do this to find files that are > than N hours old.
I want to do somthing like this:
find . -mtime + (now - 2hrs) -print
If not is there a way to do this with sed or awk or some... (5 Replies)
Discussion started by: BeefStu
5 Replies
5. UNIX for Advanced & Expert Users
We have an ancient Unix box from Siemens. Every year the system automatically changes the time for EST or DST. Unfortunately since the box is so old the dates that the times change are the old dates and not the current ones set during (I think) the Bush years.
When I have to set the time back... (3 Replies)
Discussion started by: jbcamel
3 Replies
6. Shell Programming and Scripting
I have to retain only 1 day files in my system an I have to delete all the other files which are older than 24 hrs. Please let me know the option I have to give in the find -mtime command. (3 Replies)
Discussion started by: rajesh8s
3 Replies
7. Infrastructure Monitoring
Hi All,
Can we start the snmpdx on another port at boot time on solaris 10 instead of the default 161 port? What is the configuration file to set this?
We can make it run in a different port after the system boots up by using
snmpdx -p port_number
This requirement is because i have an... (1 Reply)
Discussion started by: Mr. Zer0
1 Replies
8. Shell Programming and Scripting
Hi all,
I am trying to figure out a method to flag an error if a file has not arrived in a certain directory within 24 hrs of the last one arriving.
I am currently writing the time to a file when a file is recieved. I then want to check for a new file reguarly but flag an error if it has been... (3 Replies)
Discussion started by: pxy2d1
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am working on a script in which i need to get 4 hrs back time from the current time which i got from this perl function :
`perl -e 'print localtime(time() - 14400) . "\n"'`
now i need to get this in a loop and increment that time by 15 minutes
i.e
i=900(=15minutes)
`perl... (2 Replies)
Discussion started by: maanik85
2 Replies
10. UNIX for Dummies Questions & Answers
Is there a way of setting the TZ for New Zealand. I do not mind if it is only for the logged in session.
It makes it hard to understand when files or CRON jobs have run when the time is set to GMT0.
Any help will be appreciated.
;) (1 Reply)
Discussion started by: jagannatha
1 Replies