Article View: news.software.readers
Article #175082Re: how to order files being posted?
From: Anonymous via the Cypherpunks To...
Date: Mon, 17 Oct 2005 10:36
Date: Mon, 17 Oct 2005 10:36
65 lines
3225 bytes
3225 bytes
Hi Ohmster,
I am reposting this reply in news.software.readers because
you may not have seen my original reply in alt.linux.
Instead of cross-posting in news.software.readers and
alt.linux, it might have been better to post once in
comp.os.linux.misc because newspost is not a newsreader and
because comp.os.linux.misc has more traffic than alt.linux
(IMHO).
I was a bit confused by your post in another way. You say
you are running FC3 (a version of Red Hat Linux), but you
mention using QuickPar and WinRar. These programs sound
like Windows applications: they are certainly not available
for my Linux distro. Instead, I run par2cmdline, rar and
unrar which are all built as Linux apps and can be scripted
(which seemed to be what you were trying to achieve).
With all that out of the way, here is my tentative answer to
your original query.
I am also learning newspost, and would like to do the same
as you. The trick may be to build up an ordered list of
files in an environment variable. For example, if the local
directory contains two files file.1 and file.2, then you can
control the order in which these files are presented to
newspost as follows (using Bash).
declare FILE_LIST="file.1 file.2"
newspost <options> $FILE_LIST.
For the opposite order, simply do this.
declare FILE_LIST="file.2 file.1"
newspost <options> $FILE_LIST.
Perhaps you could try this as an experiment and see if the
order is preserved in the actual posting. (I haven't got
posting rights ATM.)
If it does work, you'll then need to create an appropriate
$FILE_LIST variable automatically. It might be something as
simple as this (but adapted for your data).
declare FILE_LIST=\
"$(ls *PAR2; ls file.dat.???; ls *vol;)"
newspost <options> $FILE_LIST.
You may need fancier quoting if your file names contain spaces
or other weird characters, but we'll keep it simple until we
know it works.
You can always debug the variable using this.
echo "$FILE_LIST"
Please post your whole script in news.software.readers if
you succeed.
HTH,
Angelika
Technical Details
Message-ID:
<20051017103618.1A440171AE@mail.cypherpunks.to>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.dizum.com!sewer-output!mail2newsReferences:
<Xns96E5BF431B38MyBigKitty@216.77.188.18>Show Full Headers
Complete Article Headers
Message-ID: <20051017103618.1A440171AE@mail.cypherpunks.to> Subject: Re: how to order files being posted? Date: Mon, 17 Oct 2005 10:36:18 +0000 From: Anonymous via the Cypherpunks Tonga Remailer <nobody@cypherpunks.to> References: <Xns96E5BF431B38MyBigKitty@216.77.188.18> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.dizum.com!sewer-output!mail2news Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@cypherpunks.to>. Newsgroups: news.software.readers X-No-Archive: yes Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com Lines: 65