I have to deliver a file what is tarred and zipped. Now i do first the tar and than gzip. The file extension is .gz
but they want the extension .tgz
In Linux i found the for the tar command the parameter -z to compress and tar but in AIX i cannot found this.
How can i create the .tgz file in...
I wrote the an script to check the file systems.
df -k | tr -d "%" | grep dev |
while read filesystem blocks free gebruik A1 iused mounted
do
if
[ "$gebruik" -gt "50" ] && [ "$mounted" = "/var/psf" ] |
[ "$gebruik" -gt "90" ] && [ "$mounted" =...
I send an file as an attachment with the mail. The receiver gets the file not as an attachment but in incorporated in the mail. The text is also wrong. With an other file it works oke.
The command is:
uuencode /prt/$1/input.mail/Result2N.txt.130504-133640...
I need to monitor the disk space so i wrote this little script to send an email when the free space is to low. Problem is that when the first problem is found the script stops. When i do only the echo command it works ok.
user0="root"
user1="mg.bogaard@xxx.nl"
user2="r.van_der.vliet@xxx.nl"...
in an cell i have the value : v 8,00
now i have to check if there is an v in the first position and if so fill the new cell with 8,00
if there is another character then the new cell must be empty
The following line gives the error:
print "$DATUM"" ""${GEMID01}" | sed -e 's:\(.*\)\(.\):\1,\2:'"$GEMID02"" ""$TELAANTAL"
The problem is "$GEMID02"" ""$TELAANTAL" whithout this it works oke
I have the variable $TRY.
When i print this variable the result is:
1242
Now i will add an , between 124 an the last 2
How can i add this so the result will be
124,2
I have some problems with the let TOTAAL=$TOTAAL+$freemb command in mine script:
The messages on the console are:
MEM T0156
63,0
0
/usr/bin/leesnmon[66]: TOTAAL=0+63,0: 0403-057 Syntax error
Hereby a part of the script.
BESTAND="./prd01_030417_0915.nmon.csv"
while read -r...
In a directory i have several files. For example the following names:
jan.001
jan001.001
jan002.001
feb.001
feb002.
1
i will check if there are files in the directory starting with name jan (this can be different each time i start the script so i have to use an variable)
2
if exist move...
Hello experts,
I have to report (by email) on a daily basis(using the df -vk command):
1 the total amount of disk usage
2 signal if the usage of a file system is > 80%
Who can help me with a usefull script?
Regards
Marcel
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.