* ftp large files to new server
@ 2008-08-18 15:24 Bhikkhu Mettavihari
2008-08-18 17:20 ` Bhikkhu Mettavihari
2008-08-19 11:33 ` ftp large files to new server Chuck
0 siblings, 2 replies; 10+ messages in thread
From: Bhikkhu Mettavihari @ 2008-08-18 15:24 UTC (permalink / raw)
To: Linux Newbie
I live in Sri Lanka and have 2 servers in the USA.
Server1 is a Debian Box
Server2 is a shared box where I do not have command line access
I have several large files that I have to upload from server1 to Server2.
I would first ssh to Server1
then as root or as a user I will
#ftp Server2
I get a login and password
I am accepted as a user.
then I give the command
mput *.mpeg
and the first file will start going
Then my ssh will time out before the file is uploaded
and I do not have the possibility to say continue with the next file
Is there a way of telling my ftp client to do mput without prompting
me for the next file name.
regards
Mettavihari
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ftp large files to new server
2008-08-18 15:24 ftp large files to new server Bhikkhu Mettavihari
@ 2008-08-18 17:20 ` Bhikkhu Mettavihari
2008-08-19 1:46 ` Module init for compiled in vs loaded modules Fundu
2008-08-19 11:33 ` ftp large files to new server Chuck
1 sibling, 1 reply; 10+ messages in thread
From: Bhikkhu Mettavihari @ 2008-08-18 17:20 UTC (permalink / raw)
To: Linux Newbie
Sorry for this,
but here is the answer from myself
ncftpput -u ? -p ? -R servername remotefolder localfolder &
may be others have better solutions.
regards
Mettavihari
On Mon, Aug 18, 2008 at 8:54 PM, Bhikkhu Mettavihari
<draketools@gmail.com> wrote:
> I live in Sri Lanka and have 2 servers in the USA.
> Server1 is a Debian Box
> Server2 is a shared box where I do not have command line access
>
> I have several large files that I have to upload from server1 to Server2.
> I would first ssh to Server1
> then as root or as a user I will
> #ftp Server2
> I get a login and password
> I am accepted as a user.
> then I give the command
> mput *.mpeg
> and the first file will start going
> Then my ssh will time out before the file is uploaded
> and I do not have the possibility to say continue with the next file
>
> Is there a way of telling my ftp client to do mput without prompting
> me for the next file name.
>
> regards
> Mettavihari
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Module init for compiled in vs loaded modules
2008-08-18 16:00 embedded rootfs utility Grant Likely
@ 2008-08-19 1:44 ` Fundu
2008-08-19 4:29 ` Amol Lad
2008-08-19 16:11 ` T Ziomek
0 siblings, 2 replies; 10+ messages in thread
From: Fundu @ 2008-08-19 1:44 UTC (permalink / raw)
To: linux-embedded
Hi,
For kernel modules can be loaded by explicitly do insmod etc for ones that are not compiled into the kernel.
1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init(XXXX)) for modules compiled into the kernel.
2) Does the kernel call some kind of probe to load them ? say i have 2 module compiled into the kernel for 2 diff type of ether cards. Would the kernel call init on both.
thanks !
^ permalink raw reply [flat|nested] 10+ messages in thread
* Module init for compiled in vs loaded modules
2008-08-18 17:20 ` Bhikkhu Mettavihari
@ 2008-08-19 1:46 ` Fundu
2008-08-19 6:02 ` Santosh
0 siblings, 1 reply; 10+ messages in thread
From: Fundu @ 2008-08-19 1:46 UTC (permalink / raw)
To: Linux Newbie
Hi,
For kernel modules can be loaded by explicitly do insmod etc for ones that are not compiled into the kernel.
1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init(XXXX)) for modules compiled into the kernel.
2) Does the kernel call some kind of probe to load them ? say i have 2 module compiled into the kernel for 2 diff type of ether cards. Would the kernel call init on both.
thanks !
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Module init for compiled in vs loaded modules
2008-08-19 1:44 ` Module init for compiled in vs loaded modules Fundu
@ 2008-08-19 4:29 ` Amol Lad
2008-08-19 16:11 ` T Ziomek
1 sibling, 0 replies; 10+ messages in thread
From: Amol Lad @ 2008-08-19 4:29 UTC (permalink / raw)
To: fundu_1999; +Cc: linux-embedded
Code base of 2.6.18
>
> 1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init(XXXX)) for modules compiled into the kernel.
linux/init.h:
#ifndef MODULE
...
#define module_init(x) __initcall(x);
#define __initcall(fn) device_initcall(fn)
#define device_initcall(fn) __define_initcall("6",fn)
#define __define_initcall(level,fn) \
static initcall_t __initcall_##fn __attribute_used__ \
__attribute__((__section__(".initcall" level ".init"))) = fn
...
#endif
So as you can see call to module_init is actually an initcall.
initcalls are processed in do_initcalls function in init/main.c
static void __init do_basic_setup(void)
{
....
do_initcalls();
}
>
> thanks !
Amol
>
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Module init for compiled in vs loaded modules
2008-08-19 1:46 ` Module init for compiled in vs loaded modules Fundu
@ 2008-08-19 6:02 ` Santosh
0 siblings, 0 replies; 10+ messages in thread
From: Santosh @ 2008-08-19 6:02 UTC (permalink / raw)
To: fundu_1999; +Cc: Linux Newbie
Fundu wrote:
> Hi,
>
> For kernel modules can be loaded by explicitly do insmod etc for ones that are not compiled into the kernel.
>
> 1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init(XXXX)) for modules compiled into the kernel.
>
> 2) Does the kernel call some kind of probe to load them ? say i have 2 module compiled into the kernel for 2 diff type of ether cards. Would the kernel call init on both.
>
> thanks !
>
Please do not hijack the thread, it messes up the thread in our mail
boxes and also the archive which will be used by others in the future.
--
Santosh S
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ftp large files to new server
2008-08-18 15:24 ftp large files to new server Bhikkhu Mettavihari
2008-08-18 17:20 ` Bhikkhu Mettavihari
@ 2008-08-19 11:33 ` Chuck
1 sibling, 0 replies; 10+ messages in thread
From: Chuck @ 2008-08-19 11:33 UTC (permalink / raw)
To: Bhikkhu Mettavihari; +Cc: Linux Newbie
Bhikkhu Mettavihari wrote:
> I live in Sri Lanka and have 2 servers in the USA.
> Server1 is a Debian Box
> Server2 is a shared box where I do not have command line access
>
> I have several large files that I have to upload from server1 to Server2.
> I would first ssh to Server1
> then as root or as a user I will
> #ftp Server2
> I get a login and password
> I am accepted as a user.
> then I give the command
> mput *.mpeg
> and the first file will start going
> Then my ssh will time out before the file is uploaded
> and I do not have the possibility to say continue with the next file
>
> Is there a way of telling my ftp client to do mput without prompting
> me for the next file name.
>
> regards
> Mettavihari
>
Dear Mettavihari:
I don't know which 'ftp' server application is being used at your
servers, but
here are some commands I have used:
binary ( to make the circuit work with non-text/ascii/... data)
prompt (this toggles prompting between files)
hash (this displays an octothorpe "#" for each SIZE bytes transferred ).
passive (allows 'dir' and 'ls' commands through a firewall or proxy)
# ftp -p -i hostname
"-p and -i" invokes 'passive' and 'non-interactive' from command line.
HTH, Chuck
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Module init for compiled in vs loaded modules
2008-08-19 1:44 ` Module init for compiled in vs loaded modules Fundu
2008-08-19 4:29 ` Amol Lad
@ 2008-08-19 16:11 ` T Ziomek
1 sibling, 0 replies; 10+ messages in thread
From: T Ziomek @ 2008-08-19 16:11 UTC (permalink / raw)
To: Fundu; +Cc: linux-embedded
Please, do not start a new thread by replying to a message in an existing
thread. Compose a new message from scratch to the mailing list.
Otherwise your thread shows up in the middle of another, *unrelated*
thread when anybody looks at a threaded view of the archives. Just
look at
<http://thread.gmane.org/gmane.linux.kernel.embedded/626/focus=815> to
see what I mean.
Thanks, Tom
--
/"\ ASCII Ribbon Campaign |
\ / | Email to user 'CTZ001'
X Against HTML | at 'email.mot.com'
/ \ in e-mail & news |
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Module init for compiled in vs loaded modules
@ 2008-08-19 17:26 Fundu
2008-08-20 9:06 ` Geert Uytterhoeven
0 siblings, 1 reply; 10+ messages in thread
From: Fundu @ 2008-08-19 17:26 UTC (permalink / raw)
To: linux embedded; +Cc: Amol Lad
> linux/init.h:
>
> #ifndef MODULE
> ...
> #define module_init(x) __initcall(x);
> #define __initcall(fn) device_initcall(fn)
> #define device_initcall(fn)
> __define_initcall("6",fn)
> #define __define_initcall(level,fn) \
> static initcall_t __initcall_##fn __attribute_used__
> \
> __attribute__((__section__(".initcall" level
> ".init"))) = fn
> ...
> #endif
>
> initcalls are processed in do_initcalls function in
> init/main.c
>
> static void __init do_basic_setup(void)
> {
> ....
> do_initcalls();
> }
>
> >
> > thanks !
>
> Amol
thanks Rajat and Amol.
One other question,
1) how does the kernel know which module to load first in order to satisfy dependencies issues ?
2) is there a way i could print the module init fn name from do_initcalls. to see in what order compiled in modules are called.
tia.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Module init for compiled in vs loaded modules
2008-08-19 17:26 Fundu
@ 2008-08-20 9:06 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2008-08-20 9:06 UTC (permalink / raw)
To: Fundu; +Cc: linux embedded, Amol Lad
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1547 bytes --]
On Tue, 19 Aug 2008, Fundu wrote:
> > linux/init.h:
> >
> > #ifndef MODULE
> > ...
> > #define module_init(x) __initcall(x);
> > #define __initcall(fn) device_initcall(fn)
> > #define device_initcall(fn)
> > __define_initcall("6",fn)
> > #define __define_initcall(level,fn) \
> > static initcall_t __initcall_##fn __attribute_used__
> > \
> > __attribute__((__section__(".initcall" level
> > ".init"))) = fn
> > ...
> > #endif
> >
> > initcalls are processed in do_initcalls function in
> > init/main.c
> >
> > static void __init do_basic_setup(void)
> > {
> > ....
> > do_initcalls();
> > }
> >
> > >
> > > thanks !
> >
> > Amol
> thanks Rajat and Amol.
>
> One other question,
> 1) how does the kernel know which module to load first in order to satisfy dependencies issues ?
By looking at the needed symbols (cfr. depmod).
> 2) is there a way i could print the module init fn name from do_initcalls. to see in what order compiled in modules are called.
Add `initcall_debug' to the kernel command line (if you would have looked at
do_initcalls() and do_one_initcall(), you would have known).
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-08-20 9:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 15:24 ftp large files to new server Bhikkhu Mettavihari
2008-08-18 17:20 ` Bhikkhu Mettavihari
2008-08-19 1:46 ` Module init for compiled in vs loaded modules Fundu
2008-08-19 6:02 ` Santosh
2008-08-19 11:33 ` ftp large files to new server Chuck
-- strict thread matches above, loose matches on Subject: below --
2008-08-18 16:00 embedded rootfs utility Grant Likely
2008-08-19 1:44 ` Module init for compiled in vs loaded modules Fundu
2008-08-19 4:29 ` Amol Lad
2008-08-19 16:11 ` T Ziomek
2008-08-19 17:26 Fundu
2008-08-20 9:06 ` Geert Uytterhoeven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.