Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
#!/bin/ksh -xve date HOME_DIR=$tradehome/ods #DOWNLOAD_FILE_NAME=test_0523.csv DOWNLOAD_FILE_NAME=$1.csv DATA_FILE_DIR=$HOME_DIR/data/csv DATA_FILE=$DATA_FILE_DIR/$DOWNLOAD_FILE_NAME dscfname=$HOME_DIR/log/stg_citco_intraday_trade_sqlldr.dsc badfname=$HOME_DIR/log/stg_citco_intraday_trade_sqlldr.bad #ftplog = $HOME_DIR/log/ftp_get_msg_data.log remote=cnyopdsuat USER_NAME=opdu PASSWORD=snp500 export USER_NAME PASSWORD remote ftplog DATA_FILE_NAME until [ -f "$DATA_FILE" ] do sleep 2 date echo 'Attempt to get $DATA_FILE from $remote' `date` cd $DATA_FILE_DIR echo "open $remote user $USER_NAME $PASSWORD verbose asc cd pranathi get $DOWNLOAD_FILE_NAME quit" | ftp -in > $ftplog 2>&1 done date
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.