can any body suggest me ascript that automatically connects the server and upload or download
wating 4 u r reply sachin
On Mon, Feb 18, 2002 at 11:18:35AM +0530, sachin wrote: | can any body suggest me ascript that automatically | connects the server and upload or download
One can do that with normal ftp using .netrc. The other way, is to use lftp, which can take a script, as input, with ftp commands.
chyrag.
On Mon, Feb 18, 2002 at 07:04:03AM +0000, Philip S Tellis wrote: | > can any body suggest me ascript that automatically | > connects the server and upload or download | man ncftp
Does ncftp do batch upload/download? Can I have a job in the cron, to upload files to a remote server? A couple of months back, I wanted the above functionality, and had checked ncftp out, but I couldn't find it.
chyrag.
Use Expect... This is a part of script i use for getting antivirus updates... -----start-----
#! /usr/bin/expect -f # # Make anonymous FTP connection # set timeout 300 spawn ftp [lindex $argv 0] expect "Name" send "anonymous\r" expect "Password:" send "myuserid@myhost.com\r" expect "ftp>" send "cd pub/antivirus/datfiles/4.x\n" expect "ftp>" send "bin\n" expect "ftp>" send "prom\n" expect "ftp>" send "lcd /home/update\n" expect "ftp>" send "mget *.ini [lindex $argv 1]\n" expect "ftp>" send "bye\n" -----end----- regards lilo enjoy ----- Original Message ----- From: Chirag Kantharia chyrag@yahoo.com To: linuxers@mm.ilug-bom.org.in Sent: Monday, February 18, 2002 12:39 PM Subject: Re: [ILUG-BOM] FTP script
On Mon, Feb 18, 2002 at 07:04:03AM +0000, Philip S Tellis wrote: | > can any body suggest me ascript that automatically | > connects the server and upload or download | man ncftp
Does ncftp do batch upload/download? Can I have a job in the cron, to upload files to a remote server? A couple of months back, I wanted the above functionality, and had checked ncftp out, but I couldn't find it.
chyrag.
Chirag Kantharia, symonds.net/~chyrag/ Linux scrooge 2.4.17 #1 Wed Jan 16 17:07:25 IST 2002 i686 unknown
Hello,
has any one had problems compiling version 2.5.4 of the kernel? I tried (got the source file from kernel.org) but at compiling time (make bzImage) gives me the following error (lines have been cut, continuation shown with ):
from /usr/src/linux-2.5.4/include/linux/spinlock.h:7, from /usr/src/linux-2.5.4/include/linux/mmzone.h:8, from /usr/src/linux-2.5.4/include/linux/gfp.h:4, from /usr/src/linux-2.5.4/include/linux/slab.h:14, from /usr/src/linux-2.5.4/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.5.4/include/asm/processor.h: In function \ `thread_saved_pc': /usr/src/linux-2.5.4/include/asm/processor.h:444: dereferencing \ pointer to incomplete type /usr/src/linux-2.5.4/include/asm/processor.h:445: warning: control \ reaches end of non-void function
Any clues? Am I doing something wrong? I check asm/proccessor.h for 2.4.12 and it is quite different, so no chance of copying that file.
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA i Phone: 2152971, ext 2666 pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ Key fingerprint = 1A 7C 0A 22 5A 75 A4 78 62 6F 64 09 C1 A0 F7 E6 ----------------------------------------------------------------------
On Tue, Feb 19, 2002 at 08:06:11AM +0530, Pablo Ares Gastesi wrote:
has any one had problems compiling version 2.5.4 of the kernel? I
/usr/src/linux-2.5.4/include/asm/processor.h: In function \ `thread_saved_pc': /usr/src/linux-2.5.4/include/asm/processor.h:444: dereferencing \ pointer to incomplete type /usr/src/linux-2.5.4/include/asm/processor.h:445: warning: control \ reaches end of non-void function
I am facing the same problem.
On Tue, Feb 19, 2002 at 10:08:17AM +0530, Pankaj Jangid wrote:
On Tue, Feb 19, 2002 at 08:06:11AM +0530, Pablo Ares Gastesi wrote:
has any one had problems compiling version 2.5.4 of the kernel? I
/usr/src/linux-2.5.4/include/asm/processor.h: In function \ `thread_saved_pc': /usr/src/linux-2.5.4/include/asm/processor.h:444: dereferencing \ pointer to incomplete type /usr/src/linux-2.5.4/include/asm/processor.h:445: warning: control \ reaches end of non-void function
I am facing the same problem.
Hi.
I think there was some problem with 2.5.4 and hence 2.5.5-pre1 was released just soon after. try that.
On Mon, Feb 18, 2002 at 01:23:42PM +0530, ambarish pathak wrote: | Chirag (Monday, February 18, 2002 12:39 PM) queried: | > Does ncftp do batch upload/download? | info ncftpbatch ncftpget ncftpput
I guess, without the context, the query doesn't make sense. My homepage comprises of wml pages, which are processed and converted to html, which are then uploaded to the website. I have a makefile, which does the html, and then uses ftp to upload the html pages. The limitation of ncftpput, for the purpose, is that, I would have been able to put pages in just one directory. For eg, I can't do:
mput *.html cd cgi-bin mput *.cgi
But using .netrc and ftp, I can do so. Or I can do it using lftp.
chyrag.