10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
For various reasons I decided to rebuild my log server on a new microSD. To simplify matters I restored a backed up copy of the appropriate config files and uploaded them to the new log server once syslog-ng was setup. The issue I am running into now is when logrotate compresses the log... (3 Replies)
Discussion started by: MyUserName7000
3 Replies
2. Shell Programming and Scripting
Hi ,
I have a .gz file whose contents look like below.
data1^filename1
data2^filename2.
..
.
.
Is it possible to find out the byte offset of each record from the .gz file.
Like in an uncompressed file.
grep -nb "Filename" give the byte offset of the record in this case.
... (4 Replies)
Discussion started by: chetan.c
4 Replies
3. Shell Programming and Scripting
Hi all,
I am new to perl programming. However i have a script that connects to the database and spools that into an output file.
Strange thing is that sometimes this script works and sometimes the ouput spool file is always 0 byte.
I have verified the sql query and the query always returns... (5 Replies)
Discussion started by: amit1_x
5 Replies
4. UNIX for Dummies Questions & Answers
I my shell script I call a program and redirect the output to a file.
mypgm > myoutput.file
Once in a while, the output file is zero byte.
The programmer of mypgm said the program always produce some output.
Is there any situation where a redirect will create a zero byte file even if the... (3 Replies)
Discussion started by: AIX_user
3 Replies
5. Shell Programming and Scripting
Hello
I have a requirement where i need to find the zero byte size file in the directory and need to delete that zero byte file.
Thanks (2 Replies)
Discussion started by: dsdev_123
2 Replies
6. Shell Programming and Scripting
Hi All
Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE.
Please suggest me something.
Thank's and regards
Vinay (1 Reply)
Discussion started by: vinayrao
1 Replies
7. UNIX for Dummies Questions & Answers
I have some clients uploading 0byte files to my ftp server unfortunately they dial in to an isp first so I'm not having any luck figuring out where they are coming from. I'm looking for a way to have the ftp server reject 0 byte files I checked man on vsftpd and did not see anything is there... (1 Reply)
Discussion started by: jjmill1979
1 Replies
8. Shell Programming and Scripting
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Discussion started by: krishmaths
4 Replies
9. Shell Programming and Scripting
Please help me in removing the 2nd file :
-rw-rw-rw- 1 fup03a fup03a 9216 Aug 16 00:45 med_delay_log
-rw-rw-rw- 1 fup03a fup03a 0 Aug 16 18:04 (5 Replies)
Discussion started by: miltonkeynesguy
5 Replies
10. UNIX for Dummies Questions & Answers
hi,
How to check if a file or files are of zero bytes and if yes, then to print their names?
Ashu (1 Reply)
Discussion started by: er_ashu
1 Replies