Search Results

Search: Posts Made By: me.
5,267
Posted By Corona688
Filesystem doesn't matter. Just: ...
Filesystem doesn't matter.

Just:

#!/bin/bash
DIR=/home/username
# du outputs "blocks folder" so we read both and just ignore the folder.
read USED_K FOLDER <<<$(du -s -B 1024 "$DIR" 2>...
2,729
Posted By vbe
I tested with /usr/bin/sh and /usr/bin/ksh but...
I tested with /usr/bin/sh and /usr/bin/ksh but have no bash on this server, sorry...(This one is a HPUX 11.00 )

End of execution with /bin/sh:


.
.
.

test:
total 0
drwxrwxrwx 3 vbe ...
2,729
Posted By vbe
You are too impatient and trying too many things...
You are too impatient and trying too many things at the time - Makes debugging really hard job!
Lesson 1 : Modify ONLY one thing at a time - Once issue solve only can you now pass to the next one......
1,261
Posted By Scott
<= is not a valid shell arithmetic operator. ...
<= is not a valid shell arithmetic operator.

-le would be correct.

You should also do some validation on "age", or amend your code to compensate.
1,566
Posted By vbe
vi 007 #!/bin/bash FILE=$1 if [ -f $FILE...
vi 007
#!/bin/bash
FILE=$1

if [ -f $FILE ];then

echo " hello " # say hello to the user
echo " $HOME "
echo " $HOSTNAME "
echo " $(uname) "
echo " today is $(date) "
echo "...
Showing results 1 to 5 of 5

 

Featured Tech Videos

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