bash redirection to pipes (SOLVED) + 2 off-topic

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Apr 9 22:23:36 EEST 2009


On Thu, 09 Apr 2009 22:13:02 +0300, Γιώργος Πάλλας <gpall at ccf.auth.gr> wrote:
> Giorgos Keramidas wrote:
>> Κι όμως.  Αυτό που δεν είναι προφανές από το παλιό μου email είναι ότι
>> μπορείς να ανακατευθύνεις πρώτα το stdout σε ένα pipe κι ύστερα να
>> «γυρίσεις» το παλιό stderr στη θέση του stdout.
>>
>> ...
>> ...
>>
>> Παράδειγμα από 2 ανεξάρτητα compression pipes:
>>
>>     $ ( ( ./foo.sh 3<&1 1<&2 2<&3 ) | gzip -9c - > stderr.gz ) 3<&2 2<&1 1<&3 | gzip -9c - > stdout.gz
>
> σατανικό... πάντως σημειολογικά ο δικός μου τρόπος είναι πιο ευθύς,
> with all do respect of course ;-)

Ναι είναι λίγο πιο ευανάγνωστος ο δικός σου τρόπος :)

> off-topic 1 -> Tις τελευταίες μέρες τα μηνύματα στην lgu δεν
> παραδίδονται αμέσως και μου επιστρέφει ο mail server μου
> Warning: could not send message for past 4 hours
>
>  ----- Transcript of session follows -----
> 451 4.4.1 reply: read error from iceberg.hellug.gr.
> <linux-greek-users at lists.hellug.gr>... Deferred: Connection timed out with iceberg.hellug.gr.

Κάτι δεν παίζει καλά από τη δική σου μεριά μάλλον.  Εγώ μπορώ ακόμα κι
από το laptop μου (στην Πάτρα) να συνδεθώ στο port 25 του iceberg:

    $ telnet iceberg.hellug.gr. 25
    Trying 195.134.99.76...
    Connected to iceberg.hellug.gr.
    Escape character is '^]'.
    220 iceberg.hellug.gr ESMTP Sendmail 8.14.3/8.14.3/Debian-5; Thu, 9 Apr 2009 22:21:20 +0300; (No UCE/UBE) logging access from: adsl202-23.kln.forthnet.gr(OK)-adsl202-23.kln.forthnet.gr [79.103.15.23]
=>  EHLO kobe.laptop
    250-iceberg.hellug.gr Hello adsl202-23.kln.forthnet.gr [79.103.15.23], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-EXPN
    250-VERB
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ETRN
    250-DELIVERBY
    250 HELP
=>  EXPN keramida
    250 2.1.5 Keramidas Giorgos <keramida at iceberg.hellug.gr>
=>  QUIT
    221 2.0.0 iceberg.hellug.gr closing connection
    Connection closed by foreign host.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/linux-greek-users/attachments/20090409/5ed2b72b/attachment.pgp>


More information about the Linux-greek-users mailing list