10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
2. Shell Programming and Scripting
Hi,
I am a beginner in shell scripting. Could any one help me out for below requirement. Its bit urgent.
Problem scenario:
1) I have a predefined timestamp (Ex. 2011-03-010 10:10:20)
2) And I have files in a directory starting with 'a' (Ex. a_123.txt, a_124.txt)
Expected solution:
I... (1 Reply)
Discussion started by: itzsamz
1 Replies
3. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
4. Shell Programming and Scripting
Hi,
I am searching for a way to change the display format of the timestamp from an FTP server.
From a SOLARIS 9 server (ksh) I am connecting with a shell script using Ncftp to an FTP remote server.
This script is making a list of available files on that FTP server. All files are listed with... (0 Replies)
Discussion started by: Aswex
0 Replies
5. UNIX for Dummies Questions & Answers
How do I compare 2 timestamps (ie... if 2008-02-13 10:48:58.502075 gt 2008-12-15 16:00:00.000000) (4 Replies)
Discussion started by: auzark
4 Replies
6. Shell Programming and Scripting
Hi,
I have 2 different log servers and logs are stored in both of them at varied times. Those servers have same files stored at different times. I want to retrieve the latest of the log files that are stored inthe servers. Say "file.log" is present on both servers, i want to check which of it is... (3 Replies)
Discussion started by: goutham4u
3 Replies
7. Shell Programming and Scripting
Hi all, below is my sample log file
02.20.38 .CASH_I_0069 RPM_RUN_DISTRIBUTION RPM_RUN_DISTRIBUTION 0001 1987 Started at 02.19.11 at node IEREDS17, Pid = 00492972
02.50.39 .CASH_I_0054 RPM_RUN_DISTRIBUTION RPM_RUN_DISTRIBUTION 0001 1987 Completed at 02.49.13, code: 00000000 at node IEREDS17,... (1 Reply)
Discussion started by: zainravi
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
Is it possible to Ftp the files from Windows to Unix while maintaining their timestamp
Gaurav (1 Reply)
Discussion started by: gauravgoel
1 Replies
9. Shell Programming and Scripting
Can you ftp (get) a file from another server and keep the timestamp on the file that is on the other server?
ie.
server1
server2 - Mar 12 12:30 /filename1
On Mar 15 at 13:00
server1 ftp to server2 and get /filename1
I want the file filename1 to have the date (Mar 12 12:30) on the file... (2 Replies)
Discussion started by: frustrated1
2 Replies
10. UNIX for Dummies Questions & Answers
I have written a basic script to ftp files from a local machine to a remote one and put it into a crontab to automate the process as the directory has more files added to it. I also have a cron which periodically removes files from the local directory to stop the filesystem from becoming full.... (4 Replies)
Discussion started by: Henrik
4 Replies