Search Results

Search: Posts Made By: dan-e
13,487
Posted By MadeInGermany
gzip certainly gives error when another process...
gzip certainly gives error when another process is writing to it.
Chain the next command with && i.e. only if successful.

find "$CAPDIR" -maxdepth 1 -type f |
awk -F/ '{print $NF}' |
while...
13,487
Posted By alister
The way this is typically done during logrotation...
The way this is typically done during logrotation is to rename the logfile, then send a signal to the logging process to inform it that it needs to close its file descriptor and create a new logfile,...
13,487
Posted By Corona688
If all it's doing is writing to the file, it...
If all it's doing is writing to the file, it should continue seamlessly. You can rename files in use and nothing happens as long as the inode, the file's unique ID on the filesystem, remains the...
2,368
Posted By ahamed101
ls /usr/bin/nslookup /usr/sbin/lsof...
ls /usr/bin/nslookup /usr/sbin/lsof /sbin/ifconfig /usr/sbin/dmidecode /sbin/ethtool /bin/netstat | wc -l
--ahamed

---------- Post updated at 08:49 PM ---------- Previous update was at 08:48 PM...
1,962
Posted By purdym
IMHO, regarding UIDs.... UIDs should never...
IMHO, regarding UIDs....

UIDs should never be retired, changed or reused.

If you work in any kind of environment that may persist over many years, or may audited you should never change or...
1,962
Posted By ygemici
if your system is similiar below files (so like...
if your system is similiar below files (so like redhat variants) you can try to check these
# cat /etc/login.defs |grep -i id
# Directory where mailboxes reside, _or_ name of file, relative to...
6,334
Posted By fpmurphy
sed '$d' infile > outfile pword=$(tomcat-passwd...
sed '$d' infile > outfile
pword=$(tomcat-passwd $2)
echo ' <user username="'$1'" password="'$pword'" roles="'$3'" />' >> outfile
echo '</tomcat-users>' >> outfile
2,681
Posted By LivinFree
It has to do with how your shell expands the...
It has to do with how your shell expands the command.

Try this, assuming you're in the same directory as the file:

# mv ./-X ./dash-X


Then you can examine or remove the 'dash-X' file.
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy