Search Results

Search: Posts Made By: ntenz
1,931
Posted By ntenz
Hi Annihilannic, I messed around yesterday...
Hi Annihilannic,

I messed around yesterday and got this:

#!/bin/sh
set -x
B=1:
rm /home/banip/output.1
touch /home/banip/output.1

grep "Invalid user root" /var/log/messages|cut -c 68-79...
1,931
Posted By ntenz
Compare lines and execute
Greetings,

I'm new to scripting and need a little help. I have a NAS server and want to make a script that bans IP if they fail login several times.

The problem is that I dont know how to...
7,719
Posted By ntenz
Greetings, Got it to work with the...
Greetings,

Got it to work with the following.

#!/bin/sh
set -x
A=9
rm /test.txt
cp /home/test.txt /test.txt
C=`du -skh /share/MD0_DATA/Qmusic |cut -c 1-3`
echo $C
echo $A

D=`echo "$C"...
7,719
Posted By ntenz
Oh its because of the integer value 9,6 its not a...
Oh its because of the integer value 9,6 its not a integer

What's an integer? That means whole numbers like 1, 2, 458, -2859. It does not mean fractional numbers like 0.5, .333, or 3.1415. If you...
7,719
Posted By ntenz
Oh just realized its because of the integer 9,6 ...
Oh just realized its because of the integer 9,6

What's an integer? That means whole numbers like 1, 2, 458, -2859. It does not mean fractional numbers like 0.5, .333, or 3.1415. If you must deal...
7,719
Posted By ntenz
Hi Franklin thanks for your time ...
Hi Franklin


thanks for your time

changing the if statement brought new problems :p

[/] # ./quota.sh
+ A=8
++ cut -c 1-3
++ du -skh /share/MD0_DATA/Qmusic
+ C=9.6
+ echo 9.6
9.6
+...
7,719
Posted By ntenz
Simple if statement
Hi there,

Im new in the scripting world and ran into trouble yesterday. I want to make a small script that runs in crontab checking folders. If the folder size is greater than 10 (or what I set...
Showing results 1 to 7 of 7

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