Search Results

Search: Posts Made By: clgz2002
16,396
Posted By clgz2002
Thanks methyl, Final working code: ...
Thanks methyl,

Final working code:

#!/bin/bash
################################COLORS##################################
#Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse...
16,396
Posted By clgz2002
Current Code
#!/bin/bash
#Filename: UploadFileToFtp.sh
################################COMMENTS################################
#hacer los siguiente hasta que se acaben los archivos:
# leer el path de un...
16,396
Posted By clgz2002
Thanks, while [ $x -lt $WAIT_TIME ] do ...
Thanks,

while [ $x -lt $WAIT_TIME ]
do
echo "Sleeping for $x..."
sleep 1
x=`expr $x + 1` # " ` " use backticks not " ' " apostrophe
done
16,396
Posted By clgz2002
Current Code -----FirstFile----- ...
Current Code

-----FirstFile-----

#!/bin/bash

set -x verbose #echo on
clear #clear the screen

USERNAME="xxxx"
PASSWORD="xxxx"
SERVER="192.168.225.1"
WAIT_TIME=300...
16,396
Posted By clgz2002
Linux lubuntu 3.0.0-14-generic #23-Ubuntu SMP Mon...
Linux lubuntu 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:34:47 UTC 2011 i686 i686 i386 GNU/Linux

/bin/bash
16,396
Posted By clgz2002
WAIT_TIME=300 ---------- Post updated at...
WAIT_TIME=300

---------- Post updated at 03:56 PM ---------- Previous update was at 03:16 PM ----------

I tried with your loop and it worked.

#Process files
for file in $FILE_PATH/*.dat...
16,396
Posted By clgz2002
I noticed that I wasn't passing all parameters...
I noticed that I wasn't passing all parameters but I'm still having the same issue.

USERNAME="bbb"
PASSWORD="password"
SERVER="192.168.1.100"
WAIT_TIME=300
FILE_PATH="/home/users/xxx/MMM" #...
16,396
Posted By clgz2002
I removed the quote but i'm still having the same...
I removed the quote but i'm still having the same error.
16,396
Posted By clgz2002
Syntax error: Bad for loop variable
I'm getting an error while running this script. Need help.

set -x verbose #echo on
clear #clear the screen

USERNAME="bbb"
PASSWORD="password"
SERVER="192.168.1.100"
WAIT_TIME=300...
Showing results 1 to 9 of 9

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