Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread michael shiloh
i see. so the "eval" line is inside the script and its effect is to redirect stdin/stdout for the script. very cool. thanks. m On Fri, 30 May 2008, Amos Shapira wrote: On Fri, May 30, 2008 at 3:52 PM, michael shiloh <[EMAIL PROTECTED]> wrote: I must have missed something here. Where is the

Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread Amos Shapira
On Fri, May 30, 2008 at 3:52 PM, michael shiloh <[EMAIL PROTECTED]> wrote: > I must have missed something here. Where is the script that is being run? example: #!/bin/sh echo Before redirection ls -l /proc/$$/fd/0 tty exec < /dev/null echo After redirection ls -l /proc/$$/fd/0 tty # rest of the

Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread michael shiloh
I must have missed something here. Where is the script that is being run? Michael On Fri, 30 May 2008, Amos Shapira wrote: On Fri, May 30, 2008 at 2:33 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: If you run "exec" without giving it a parameter, it will not execute anything, but the redire

Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread Amos Shapira
On Fri, May 30, 2008 at 2:33 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > If you run "exec" without giving it a parameter, it will not execute > anything, but the redirection will take effect. > > "exec < /dev/null >output 2>&1" will do what you want. Fantastic! Thanks to you and Yedidyah for

Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread Yedidyah Bar-David
On Fri, May 30, 2008 at 10:36:30AM +1000, Amos Shapira wrote: > Hi, > > I though I remember long time ago some trick that would allow a script > to redirect its stdin/stdout from/to a file without having to enclose > the entire script inside a sub-shell. > > I mean, something like: > > #!/bin/sh

Re: redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread Shachar Shemesh
Amos Shapira wrote: Hi, I though I remember long time ago some trick that would allow a script to redirect its stdin/stdout from/to a file without having to enclose the entire script inside a sub-shell. I mean, something like: #!/bin/sh (command; command; ... ..) < /dev/null > output 2>&1 Wo

Re: asterisk CallerID

2008-05-29 Thread Tzafrir Cohen
On Wed, May 28, 2008 at 12:56:21PM +0300, Arie Skliarouk wrote: > Hi, > > On Tue, May 27, 2008 at 11:31 PM, Tzafrir Cohen <[EMAIL PROTECTED]> > wrote: > > > On Sun, May 25, 2008 at 07:35:47PM +0300, Arie Skliarouk wrote: > > > Hi, > > > > > > I am trying to set up CallerID for asterisk on Digium

Typepad - another way to block blog spam?

2008-05-29 Thread Amos Shapira
Hi, This is a free project to fight blog spam. I'm only starting to look into it but though it might interest those of you who keep a blog: http://antispam.typepad.com/ As far as I followed the FAQ, it's free to use and the code that executes the rules is open source, but they keep (some of?) th

redirecting entire script's stdin/stdout to/from a file

2008-05-29 Thread Amos Shapira
Hi, I though I remember long time ago some trick that would allow a script to redirect its stdin/stdout from/to a file without having to enclose the entire script inside a sub-shell. I mean, something like: #!/bin/sh (command; command; ... ..) < /dev/null > output 2>&1 Would work, but I think

Debian still generated bad ssh keys (was: Re: SSH vulnerable key package?

2008-05-29 Thread Amos Shapira
(Sent to Noam in private by mistake - sorry Noam) On Fri, May 16, 2008 at 7:06 PM, Noam Rathaus <[EMAIL PROTECTED]> wrote: > The new ssl and ssh packages don't work if they are given known vulnerable > > During upgrade/update they upgrade/replace bad keys All packages on my Debian Etch desktop ar

Re: LVM2 and other snapshots to emulate Netapp Filer's?

2008-05-29 Thread Ira Abramov
> > I can send you a script we use on our system but most of it is our > > specific details. > > There are also "packaged" scripts that do something like this. I > personally use rsnapshot, there are a few others. Thanks for the script Ehud. I may steal a few ideas from it, but it seems like rsna

[OSDClub Meeting] Vim Tips and Tricks on 15-June-2008 in Tel Aviv University

2008-05-29 Thread Shlomi Fish
The Joint Tel Aviv OSDClub (Open Source Developers' Club, which comprises of Perl-IL, the Tel Aviv Linux Club and possibly other clubs) will hold a meeting on Sunday, 15-June-2008 about "Vim Tips and Tricks". The meeting will take place at Tel Aviv University, at the Schreiber Math&CS building,