Sponsored Content
Top Forums Shell Programming and Scripting I have problems ftp'in a file Post 302414573 by rechever on Tuesday 20th of April 2010 12:04:01 PM
Old 04-20-2010
I have problems ftp'in a file

I have a directory in WINDOWS with a series of files like this:

Code:
 
3526_334690.dat 
3526_337092.dat  
3526_337933.dat

I want to retrieve the last one and FTP to a unix directory
I have (trying the three of them) the following commands in my script (shl script)

Code:
LocalDir="${MPATH}/middlebury/dat_files";
CDRemoteDir='orgs/"Financial Aid"/CSS/idocload';
echo $CDRemoteDir
##UpLoadFileName = '$(ls -rt | tail -1)';
UpLoadFileName='3526_420563.dat' (this works)
##UpLoadFilename=$(grep 3526 $tmpFile | sort 8 | awk '{fn=$9} END{print fn}'); 
echo $UpLoadFileName;
echo $tmpFile;

UpLoadFileName='3526_420563.dat' (this works but I don't know the last file number, I only know the 3526, it is constant,
so when I try UpLoadFileName = '$(ls -rt | tail -1)' I got the error not found,
when I try UpLoadFilename=$(grep 3526 $tmpFile | sort 8 | awk '{fn=$9}
can not open
what I am doing wrong, I am in windows XP trying to ftp to UNIX
Thank you
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp problems

ok folks, hopefully you can shed some light on this for me. I have wu-ftpd running on a Mandrake 7.2 box. No matter what I do (ie. editing ftpusers, allow/deny files, etc, etc...) I cannot gain access to that machine by way of FTP. I consistently get errors stating "530 Login Incorrect". ... (3 Replies)
Discussion started by: ober5861
3 Replies

2. UNIX for Dummies Questions & Answers

FTP access problems

Current setup: I am running Solaris 8 and PROFtpd. I have my network functioning correctly. The server can be pinged from any machine on the network. There is no firewall between the client and the server. The proftpd service is running using the correct and only proftpd.conf file in standalone... (5 Replies)
Discussion started by: zbis12
5 Replies

3. UNIX for Dummies Questions & Answers

Ftp Problems

I ahev 4 Unix servers, if i FTP into any one of the from another, and try to ( cd /user) i get a message stating that no such directory....id i cd into anyother directory like /bin it works... So why only for the /user it is not working on FTP ?? What is more annoying is that if i telnet... (1 Reply)
Discussion started by: BAM
1 Replies

4. UNIX for Dummies Questions & Answers

Red Hat 7.2 Linux Server - FTP Problems

I have just installed RH7.2 Server and along with apache 1.3 and PHP. I am able to FTP from my linux box to other remote maches, but am unable to FTP to the linux box from other remote machines. The message I get is: A remote host has refused an attempted connect operation. I have done some... (3 Replies)
Discussion started by: jyoung
3 Replies

5. HP-UX

FTP user files permissions problems!!!

Hi, I have a problem with my ftp accounts whereby if any external ftp party connects to our server and puts any file in a directory on our server. The file permissons are always -rw-r----- and no read for others. I have adjusted the ftp user .profile to include 'umask 022' but this only works... (3 Replies)
Discussion started by: budrito
3 Replies

6. UNIX for Dummies Questions & Answers

OpenBSD Ftp permissions problems - help!!

Hello, Ok I have a couple of little problems that I can't for the life of me work out how to solve. I wasn't involved in setting the server up, I've just "inherited" the support for it. I've done my best to be a good little newbie, researched articles, tried things out and managed to only get... (1 Reply)
Discussion started by: Andy68man
1 Replies

7. Shell Programming and Scripting

Problems with ftp

Hi all, I am taking log files every 15 min from remotemachine. My code is ; FRONTEND_HOME=/home/hai/jjsjs/Frontend_log cd /dsd/sds/sdsds/FrontEnd ftp -n 10.22.144.32 << END_INPUT >> /root/scripts/tracking/ftp_frontend.log 2>&1 user hai hai asc cd $FRONTEND_HOME prompt mget logger.log.*... (4 Replies)
Discussion started by: subin_bala
4 Replies

8. Shell Programming and Scripting

FTP problems

Hi All, I am ftping to a windows box where i will be going to a specific directory and check whether file is existing or not. If file exists, get the file to my UNIX box else, say that file didn't exist and touch a new file in UNIX box. Here is what i tried the code: This is FTP script. ... (2 Replies)
Discussion started by: reddybs
2 Replies

9. Red Hat

networking problems with ftp,telnet, ssh, http

I have following problems with RHEL 5.2 Desktop installation ftp, telnet, ssh and web are not working. Web browser tries to connect to host but eventually fail with timeout. ftp, telnet and ssh simply hung, nothing happens. Basically all protocols will end up in timeout. ping, nslookup and... (2 Replies)
Discussion started by: Kainu
2 Replies

10. SCO

problems with ftp without internet

Dear Friends, I have the following problem, when there is no internet does not work the ftp to the server, with the local network use a router for dhcp SCO OpenServer 6.0 terminals with windows 7 ftp client ftplite and also use ftp from ms-dos to do? regards (1 Reply)
Discussion started by: Edgar Guevara
1 Replies
UNKNOWN(1)						      General Commands Manual							UNKNOWN(1)

NAME
unknown - identify possible genotypes for unknowns SYNOPSIS
A program to rapidly identify which genotypes are possible for individuals typed as unknowns in the input pedigree. unknown [ -cl ] DESCRIPTION
unknown infers possible genotypes and mating combinations for parents with unknown genotypes for ilink(1), mlink(1) and linkmap(1). OPTIONS
-c Use conditional allele frequencies. -l Choose a good set of loop breakers automatically. RETURN VALUE
0 Successful completion ERRORS
10 File not found 255 Failure EXAMPLES
Normally, unknown(1) is run immediately prior to its sister programs, ilink(1), mlink(1) and linkmap(1), like this: unknown mlink FILES
unknown(1) reads the two files pedfile.dat and datafile.dat as its own input and produces various temporary files that are used as input to the next program. These temporary files are ipedfile.dat, upedfile.dat, speedfile.dat and newspeedfile.dat. NOTES
unknown(1) is part of the FASTLINK package, which is a re-implementation of the LINKAGE suite of computer tools that help investigate genetic linkage as first proposed G.M. Lathrop, J.M. Lalouel, C. Julier, and J. Ott. AUTHORS
Dylan Cooper, Alejandro Schaffer, and Tony Schurtz based on work originally by Jurg Ott, Ph.D, et. al. This manual page was written by Elizabeth Barham <lizzy@soggytrousers.net> for the Debian GNU/Linux system (but may be used by others). WORD-WIDE-WEB http://www.ncbi.nlm.nih.gov/CBBResearch/Schaffer/fastlink.html SEE ALSO
ilink(1), linkmap(1), lodscore(1), mlink(1). April 15, 2003 UNKNOWN(1)
All times are GMT -4. The time now is 06:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy