Search Results

Search: Posts Made By: Param0073
2,295
Posted By Param0073
retreiving file name in a variable on ftp
Hi ,
I need to retreive the file name in an variable on the ftp server.Can you guy please let me know how can i do that.I need some thing like

connect to ftp <<eof
new_variable=`ls...
5,286
Posted By Param0073
Hi, Can i collect the file name using ls in...
Hi,
Can i collect the file name using ls in a variableon the FTP server?If i can get the file name in the variable then i can use the mget for retreving the required file:confused:
5,286
Posted By Param0073
If then else in with mget command
Hi Friends,
I need to use if then else logic with the mget command.I need to check if {JOURNAL_CODE}*_1_Audit*.txt exists then download it (using mget)and if not then leave it.Same for the...
2,886
Posted By Param0073
Hi Thanks for the reply. In my while loop i am...
Hi Thanks for the reply.
In my while loop i am checking for the existance of the file (like $AMPS_COMPLETE01 etc ) and also the [$PMON_COUNT -eq 0 ].if any of the condition is not met then i do the...
2,886
Posted By Param0073
if then else logic with while loop problem
Hi Friends,
I have to do write a shell file based on one flag.If that flag value is 'N' then process look in $DATA are and the normal process continue.If vaule is 'P' then it check for...
2,232
Posted By Param0073
Thanks for the reply.I got the information from...
Thanks for the reply.I got the information from the man page ,but still one more doubt was "what the back slash is used for in the code".
2,232
Posted By Param0073
While loop problem
I have a while loop with -f and -o option.Can any one please tell me what that stands for?The Sample code is as follows:-

while [ ! -f $DATA/$AMPS_COMPLETE01 -o ! -f $DATA/$AMPS_COMPLETE02 -o \
!...
7,701
Posted By Param0073
Thanks for the reply.Now we have agreed on the...
Thanks for the reply.Now we have agreed on the file size to be maintain,that i can do by the following

mv file file.tmp && tail -n 500 file.tmp > file && rm file.tmp
7,701
Posted By Param0073
Truncating file based on date
Hi,
I need to truncate a file based on date.Suppose i have a log file which is getting updated every date,i need to keep 7 days worth of data(like sysdate-7) and rest i want to truncate it.Can...
Showing results 1 to 9 of 9

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