10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Not sure whether there is a fuser alternative or any better way to check for file in use or not.
I am wanting to check whether files are in use or not before removing them. Using fuser, the awk seems to be giving me 'weird' output not to mention that it is giving me 2 lines instead of... (0 Replies)
Discussion started by: newbie_01
0 Replies
2. Shell Programming and Scripting
Hello,
I am trying to write a housekeeping that finds all .trc files older than x days in a given FS, checks if they are used and gzips them if they are not used by any process. I need to do it without calling any additional .sh script.
I managed to make it work for Linux only:
find .... (4 Replies)
Discussion started by: Valkov
4 Replies
3. Shell Programming and Scripting
I m trying to send o/p of one file using mailx command but is not working
PFB command :
cat healthchecklog | mailx -s "HEALTH CHECKS" abc@jkl.com
also I have checked the ps -ef for mailx which is giveing below o/p
ps -ef | grep mail
root 364 1 0 Jun 08 ? ... (11 Replies)
Discussion started by: Jcpratap
11 Replies
4. Shell Programming and Scripting
I have the following files in a directory
> ls -1 /tmp/test/dir/
file with spaces 1.ogg
file with spaces 2.oggI am running the following to echo the filenames but alter the file extension on the files to .mp3 instead of .ogg ( I am going to run ffmpeg against the files ultimately, but keeping... (2 Replies)
Discussion started by: jelloir
2 Replies
5. Solaris
I have a situation where the system is dumping a 2g causing filesystem to fill up. We identified the source and working on a solution. However, I wanted to limit the size of the 'core' file.
Please examine the test scenario ...
cnewtonne@mars> ulimit -f 0
cnewtonne@mars> ls -ltr core*... (2 Replies)
Discussion started by: cnewtonne
2 Replies
6. Shell Programming and Scripting
trying to find a way to locate files modified in the last hour in a shell script, unfortunately the command 'find . -mmin -60' is not supported on SunOS 5.10 (works on OpenSolaris 5.11 :mad:)
Does anyone know a method of doing this in shell script on 5.10?
cheers (19 Replies)
Discussion started by: rich@ardz
19 Replies
7. Solaris
i am using sunos 5.9.
entityname="india\/delhi"
correctpattern="<branch value=\"/`echo $entityname | tr -d '\'`/WORKAREA/\">
echo $correctpattern
the output should be
<branch value="/india/delhi/WORKAREA/">
This is working fine in command line but not working when i placed these... (1 Reply)
Discussion started by: millan
1 Replies
8. Shell Programming and Scripting
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command:
find /appl/Output -name "Admin*" -prune
but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly... (6 Replies)
Discussion started by: Vishal123
6 Replies
9. UNIX for Dummies Questions & Answers
I have a script with a find command using xargs to copy the files found to another directory. The find command is finding the appropriate file, but it's not copying. I've checked permissions, and those are all O.K., so I'm not sure what I'm missing. Any help is greatly appreciated.
This is... (2 Replies)
Discussion started by: mpflug
2 Replies
10. Shell Programming and Scripting
I am facing some strange problem.
I know, there is only one record in a file 'test.txt' which starts with 'X'
I ensure that with following command,
awk /^X/ test.txt | wc -l
This gives me output = '1'.
Now I take out this record out of the file, as follows :
awk /^X/ test.txt >... (1 Reply)
Discussion started by: videsh77
1 Replies