Re: which text edito should I use for C file
- From: "Erik van der Kouwe" <vdkouwe <at> few.vu.nl>
- Date: 22 Apr 2008 06:04:53 GMT
I thought about a possible solution like this,
if you don't mind I'd like to know how you upload back the output and
how I can write a such as script, I'm a freshman in Minix/Linux world
thank you again.
Ps
Which tool do you use to download the file from the FTP server
I created the script below to upload to FTP. "fingolfin" is the name of
the computer I am uploading to. You can put the script in
/usr/local/bin and make it executable using "chmod 755 <filename>". It
will upload all the filenames specified as parameters to the FTP server.
#!/bin/sh
FILENAME=/tmp/fput-`date +%Y%m%d%H%M%S.tmp`
rm -f $FILENAME
echo user anonymous >>$FILENAME
echo pass anonymous@xxxxxxxxxx>>$FILENAME
echo binary >>$FILENAME
while [ $# -gt 0 ]
do
echo put $1 >>$FILENAME
shift
done
echo quit >>$FILENAME
ftp fingolfin < $FILENAME || echo FTP PUT failed!
rm -f $FILENAME
You can call this script from your compilation script to upload
results. For downloading you can either make something similar
(replacing put with get) or use the urlget tool supplied with Minix.
--
With kind regards,
Erik van der Kouwe
.
- Follow-Ups:
- Re: which text edito should I use for C file
- From: puntino
- Re: which text edito should I use for C file
- References:
- which text edito should I use for C file
- From: puntino
- Re: which text edito should I use for C file
- From: Erik van der Kouwe
- Re: which text edito should I use for C file
- From: puntino
- which text edito should I use for C file
- Prev by Date: Re: which text edito should I use for C file
- Next by Date: Re: which text edito should I use for C file
- Previous by thread: Re: which text edito should I use for C file
- Next by thread: Re: which text edito should I use for C file
- Index(es):
Relevant Pages
|
Loading