Search Results

Search: Posts Made By: Bperl1967
1,125
Posted By Bperl1967
Help with command in ksh script
I want my script to check directories and files within the directories older than 7days lold and remove them but the script only removes the directories older than 7 days.


find...
1,184
Posted By Bperl1967
Thank you so much, this is now working as...
Thank you so much, this is now working as designed!:)
1,184
Posted By Bperl1967
Help with ksh Shell Script
My goal is to create a script that will check if in a test or production environment. I wrote this script to check $host variable to check which server I'm on but this script does not work.

if...
1,876
Posted By Bperl1967
Help with zipping files in multiple directories
I'm trying to zip multiple files from within certain directories which are named out.

find . -name "*_out -print | xargs zip *

I get this error :
A file or directory in the path name does...
13,816
Posted By Bperl1967
When I replaced %T with %s I got 0 DURATION...
When I replaced %T with %s I got 0

DURATION OF BACKUP: 0
COMPRESSING OF FILES STARTING
DURATION OF COMPRESSING FILES: 0

This ran well over 6 minutes.
I don't know what the problem is.
13,816
Posted By Bperl1967
time calculation in ksh script
I"m trying to calculate the duration of of backup within a ksh shell script but I get an error.

#!/bin/ksh

STTIM=`date '+%T'`
EDTIM=`date '+%T'`
....
....

echo "DURATION OF BACKUP:...
6,502
Posted By Bperl1967
explain while loop in ksh shell script
#!/bin/ksh

log[0]=ABCl
log[1]=EFG
log[2]=HIJ

i=0
while [ $i -lt 3 ] <------ what is the meaning of ($i - lt 3)
do
print ${log[$i]}
(( i=i+1 ))
done
6,917
Posted By Bperl1967
argv usage in a korn shell script
I'm trying to count and display the variables on a command line

#!/bin/ksh

$# argv

from command line: tryit2 this is a test
returns : tryit2[3]: 4: not found.
1,479
Posted By Bperl1967
When I try to execute the command I get the error...
When I try to execute the command I get the error :
rm: Not a recognized flag: w
Usage: rm [-firRe] [--] File...
1,479
Posted By Bperl1967
Help with KSH Shell Script
From a shell script I'm trying to remove the first two files of whats returned from the head -2 command so I tried piping it to xargs rm -f but I can't get it to work.

How do I remove the files...
1,067
Posted By Bperl1967
help with ksh shell scripting
I want to run a script that checks the env to see if I'm in a test or prod environment. From the command line I enter echo $host and it returns host name and I can tell by the name if I'm in test or...
1,028
Posted By Bperl1967
Help with ksh shell script
Anyone know how to check a filename that contains a date and compare whiich file is older using a ksh shell script? The filename looks like aaaaa_20110615
Showing results 1 to 12 of 12

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