Line overflow??


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Line overflow??
# 8  
Old 04-17-2002
Lexx

Here that I'm rtying to do..
Code:
#!/usr/bin/csh
#host_send.sh
#
#MAR-2002 by Peter Brian Hoddersen 
############################################################################

set quelle=/usr/users/ftp/test
set ziel=/usr/users/ftp/test/processed

if (-e $quelle/W*) then
   echo "***************************"
   echo "* Data to send to test*"
   echo "***************************"
   echo ""
   echo "Data is being transfered...."
   echo "please wait...."
   cd /usr/users/ftp/test
   uncompress W* 
   ftp -n testhost <<EUF
   user anonymous peter.hoddersen@seb.se
   image
   put W*
   EUF

sleep 120
echo "copying to processed..."
echo ""
mv $quelle/W* $ziel/W*.`date +%m%d%H%M`

echo "Thats all ........bye"
endif

I'm trying send this image file threw ftp.. I get "Line overflow" Since I don't have to much experience writting shells. I need help.
I want it to look for a data that begins with " W " and then it should send it to the testhost.

Peter

added code tags for readability --oombera

Last edited by oombera; 02-20-2004 at 03:50 AM..
# 9  
Old 04-17-2002
Peter,

I don't have experience with csh, but I guess the problem is that you try to put "W*" onto the FTP server. I'd rather try to execute a single put request for every single file, probably using 'for'. Maybe someone with experience in csh can rather help you here. Sorry that I can't help you any better with this.

Greetings,
Lexx

--
:wq!
Lexx
# 10  
Old 04-17-2002
Have you tried "mput W*" ?
# 11  
Old 04-17-2002
Livinfree

I tried that too.. I still get "Line overflow"..

Peter
# 12  
Old 04-17-2002
What if the password contains @ while using -
ftp userSmilieassword@host
# 13  
Old 04-17-2002
inpavan

I've tried that tooSmilie You see with this user i don't need a password.


Peter
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

neighbor table overflow

hi folks, Do you have any idea why this error occurs ? My server is hp blade in c7000 frames running RHEL 4 update 4. # uname -a Linux xxx 3 2.6.9-55.0.12.ELsmp #1 SMP Wed Oct 17 08:15:59 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Applications running are jboss or java applications: #... (4 Replies)
Discussion started by: linuxgeek
4 Replies

2. UNIX for Dummies Questions & Answers

perform stack overflow

Help! I have an AIX system that has a power outage. When I logged in as root and got the system up and running it all looked ok. But.....when a user tries to log in they receive the error: The perform stack has overflowed OP=2117 PC=2124 E=46 in emmcshflif icrun is finished How can I fix... (1 Reply)
Discussion started by: dlegnar
1 Replies

3. Ubuntu

Stack overflow i guess while insmod

I have built kernel 2.6.35 on my Ubuntu system with some specific requirement. I also built some app defined module with the same kernel. I booted up the built version and I find it did not work properly as there is some gui and other modules missing problem. But the system booted up and I did... (0 Replies)
Discussion started by: sunilsukumar4u
0 Replies

4. Programming

c++ overflow problem

I have come accross a rather strange problem with two buffers that seem to be overriding each other. bool killSession(const Session &session){ //Get user FILE* fp = fopen("conf/sessions.current", "rt"); char line; char user; int x = 0; int leaseTime; printf("key: %s \n" ,... (2 Replies)
Discussion started by: mshindo
2 Replies

5. Shell Programming and Scripting

How not to let field overflow ?

Hi All I ahve a basic script with a screen. Is there anyway that I can make it possible for the user not to type over the ] ie I would like the inpu to be only with the brakcets? Any suggestions welcome. :b: eg DB name: function get_fdb { while ] do tput cup 9 41 ... (1 Reply)
Discussion started by: WhitesinHolland
1 Replies

6. HP-UX

Problem with stack overflow

Hi, I get a problem with stack overflow on HP-UX, when running a C program. Pid 28737 received a SIGSEGV for stack growth failure. Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz. The possible cause i found, was that the definition of a structure had... (0 Replies)
Discussion started by: karthikb23
0 Replies

7. UNIX for Dummies Questions & Answers

Printer buffer overflow

I have an Oki-Page 14ex with 4MB of RAM. Whenever I print large documents or a several small documents, I get a buffer overflow. Can anyone help? Thanks. If there is any additional information you need, please feel free to ask. Tim (3 Replies)
Discussion started by: AltatemTC
3 Replies
Login or Register to Ask a Question