regarding this i tried
`echo $a >>log.txt`
and it did not work
only `echo aa>>log.txt` where aa is a text worked
any ideas why?
[edan] I tried:
$ perl -e'$a=q/foobar/;`echo $a>>log.txt`'; cat log.txt
foobar
no idea what went wrong for you, but it must be somewhere else in the code.
Of course this approach is very dangerous if "$a" (bad name - it's a special
variable used for sort in perl) comes from untrusted user input - use taint
mode, or sanitize it first!!
--edan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Ephraim Dan
Sent: Monday, August 27, 2007 12:28 PM
To: Perl in Israel
Subject: Re: [Israel.pm] close file
You could also turn off I/O buffering - see "autoflush" in the manpage for
"select" or IO::Handle, or the variable "$|"
Of course it has performance impacts, but it will probably help.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Levenglick
Dov-RM07994
Sent: Monday, August 27, 2007 11:56
To: Perl in Israel
Subject: Re: [Israel.pm] close file
Using an END block or a die handler should help here
Best Regards,
Dov Levenglick
SmartDSP OS Development Team,
DevTech, Technology and System Organization
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[ ] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Proprietary
[x] Personal Memorandum
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ernst, Yehuda
Sent: Monday, August 27, 2007 11:34
To: [email protected]
Subject: [Israel.pm] close file
Hello!
I need to open a file for writing.
my program does not reach the end so the close file is not executed.
because of this the file stays empty when i look at it.
is there a way to bypass this?
thanks
Yehuda Ernst יהודה ארנסט
NDS Technologies Israel Ltd. mailto:[EMAIL PROTECTED]>
Jerusalem Tel: +972 (2) 589-4427
PO Box 23012 Fax: +972 (2) 589-4825
Israel. 91235 Cell +972 54 5664427
*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the
addressee only. Any dissemination, copying or distribution of this message or
any attachments by anyone other than the intended recipient is strictly
prohibited. If you have received this message in error, please immediately
notify the [EMAIL PROTECTED] and destroy the original message. Messages sent
to and from NDS may be monitored. NDS cannot guarantee any message delivery
method is secure or error-free. Information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or contain viruses. We do not
accept responsibility for any errors or omissions in this message and/or
attachment that arise as a result of transmission. You should carry out your
own virus checks before opening any attachment. Any views or opinions
presented are solely those of the author and do not necessarily represent those
of NDS.
NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England
and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
To protect the environment please do not print this e-mail unless necessary.
**********************************************************************************************************
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl
*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the
addressee only. Any dissemination, copying or distribution of this message or
any attachments by anyone other than the intended recipient is strictly
prohibited. If you have received this message in error, please immediately
notify the [EMAIL PROTECTED] and destroy the original message. Messages sent
to and from NDS may be monitored. NDS cannot guarantee any message delivery
method is secure or error-free. Information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or contain viruses. We do not
accept responsibility for any errors or omissions in this message and/or
attachment that arise as a result of transmission. You should carry out your
own virus checks before opening any attachment. Any views or opinions
presented are solely those of the author and do not necessarily represent those
of NDS.
NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England
and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
To protect the environment please do not print this e-mail unless necessary.
**********************************************************************************************************
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl