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
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
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
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
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
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
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
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
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
(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
> > 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
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,
12 matches
Mail list logo