![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /var size is increasing day by day | thepurple | SUN Solaris | 11 | 11-13-2007 06:19 AM |
| Help on increasing fs size | kingsto88 | HP-UX | 5 | 02-11-2007 07:37 AM |
| Increasing File Size on AIX | Rosie C | AIX | 1 | 05-12-2006 04:25 AM |
| increasing ufs file system size in solaris | BG_JrAdmin | UNIX for Dummies Questions & Answers | 6 | 12-01-2005 04:56 AM |
| Append a field to the end of each line of a file based on searching another file. | ultimate | Shell Programming and Scripting | 2 | 03-29-2005 10:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Trying to empty file using > but the file size increasing when next append
AIX 5.3 / KSH
I have a Java application which creates a log file a.log. I have a KSH script which does the following action Code:
cp a.log /directory2/b.log > a.log Then next time when the application writes into this file, the file size is goes to the previous before the ">" operation happened. I tried the Code in a different style: Code:
cp a.log /directory2/b.log cp /dev/null a.log ***NOTE: I cannot use rm -f/touch method for cleaning up the log file because it requires a restart of the application. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|