Hi!
Normally when I want to delete everything in a file without deleting the file itself I do:
# >filename
However this doesnt work well when combinig it with rsh calls:
# rsh loghost >/var/adm/logfile
which will create a file on my local machine and then just hangs there...
To make it even more difficult I have to do it in two steps:
# rsh server rsh xstation >/var/adm/logfile
And finally to make it almost impossible, the log rotates and gets a number at the end which differs every time my script runs:
# rsh server rsh xstation >/var/adm/logfile.???
So, is there another command besides '>' that emptys a file??
regards
Roger
Normally when I want to delete everything in a file without deleting the file itself I do:
# >filename
However this doesnt work well when combinig it with rsh calls:
# rsh loghost >/var/adm/logfile
which will create a file on my local machine and then just hangs there...
To make it even more difficult I have to do it in two steps:
# rsh server rsh xstation >/var/adm/logfile
And finally to make it almost impossible, the log rotates and gets a number at the end which differs every time my script runs:
# rsh server rsh xstation >/var/adm/logfile.???
So, is there another command besides '>' that emptys a file??
regards
Roger