10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
if ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log /var/log/mrnet.log.1.gz
fi
i'm looking if mrnet.log is bigger then 5000
then compress mrnet.log to mrnet.log.1.gz but it won't compress. (3 Replies)
Discussion started by: Froob
3 Replies
2. Shell Programming and Scripting
how to zip all log file in a folder expect the latest
gzip * ---> will zip all log files but I don't want the latest file to be zipped
ex: file1, file2, file3, file4, file5
any single command to gzip all files excpet file5 ? (2 Replies)
Discussion started by: rmann
2 Replies
3. Shell Programming and Scripting
I am creating a script to run the SysInfo tool under HPUX servers, this is my script!
#!/usr/bin/ksh
#
# Date: February 29th 2011
#
#Definicion de variables
PATH_TMP=/home/eponcede
> HPUX_SysInfo.log
for host in `cat $PATH_TMP/servers/host_hp2_test`
do
echo... (2 Replies)
Discussion started by: eponcedeleonc
2 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies
5. Shell Programming and Scripting
Hi,
I want to gzip files in loop.
for i in `ls *.xml`;
do
gzip $i;
done
But i am gettin error like "/usr/bin/ls: Arg list too long"
Also please tell me how to do it with while loop and also using find and then exec. (7 Replies)
Discussion started by: tushar_tus
7 Replies
6. UNIX and Linux Applications
Hi,
I am getting are error message when i call a java program from shell script.
I have the java class in specified folder.
I could not find command 'java' in /bin folder.Is it the issue?
Please help me in this.
Thanks
Biju (2 Replies)
Discussion started by: bijus76
2 Replies
7. Shell Programming and Scripting
hello all
im trying to use in sun Solaris the information received from the top command
now i several machines that dont have install the top program so when im running the script im geting error
saying after im running this code :
set MemoryInfo = `top | grep Memory`
if (... (2 Replies)
Discussion started by: umen
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have some files which are 01.tar.gz, 02.tar.gz,03.tar.gz ........30.tar.gz.
when I want to extract the files I 'm using this command "gzip -dc *.tar.gz | tar -xvf -" but it just uncompress 01.tar.gz
how can I uncompress all of them ?
thanx
alice (2 Replies)
Discussion started by: alisevA3
2 Replies
9. SCO
ciao a tutti,
premesso che sono un principiante di unix, avrei bisogno di gzip/gunzip e SOPRATTUTTO delle istruzioni (ahimè dettagliatissime, come per un bimbo!) per installarlo...
grazie mille,
ciao (1 Reply)
Discussion started by: mfran2002
1 Replies
10. UNIX for Dummies Questions & Answers
Gurus,
My own stupidity (or ignorance...or both) put me in the situation I am in and I need help please:
1-My shell account (OS: HP UX v11) contains several work directories (/docs, /scripts...)
2-Our sysadmin has implemented aggressive disk quotas so I have to compress the files I put here... (2 Replies)
Discussion started by: alan
2 Replies