I've updated to the latest build (1176) and system calls in microperl still don't work!

If you have microperl built on your system could you try the following simple script:

#!/usr/bin/microperl
`ls > out`;

One would expect a file called out to be created with the contents of the ls output.  In my case nothing happens, no file created, no error messages.

If it works on your system could you let me know what build you are using?

Thanks,

Steve

On 11/20/06, Steve Sakoman <sakoman@gmail.com> wrote:
Hmm . . . very interesting!  What build are you using?  I am on build 1092 with the stock microperl.

When I run the example code I get the failure messages, and any quoted command lines seem to return nothing, just as you experienced.

Thanks for trying this out.  Perhaps it is version related.

Steve


On 11/20/06, Jon Keller <jkeller@650.co.nz > wrote:
I had a look at the pages you pasted, and tested out their example code,
and it all worked fine on my gumstix, thats quite odd that it doesn't
work for you. I'm using the stock microperl build from the buildroot.
The only thing that didn't work for me was the date command that you
pasted, date +%A worked fine, however when I added the "+%A" to the
equation I got nothing returned. Is this what you're experiencing? It
does seem that any time I add quotation marks to `` or system calls, the
call fails, but provided I run commands, piped or not, without
quotes...everything seems to work ok.

    -Jon

Jon Keller wrote:
> Can you define "doesn't work"? I use a lot of back ticks, system() and
> exec() calls in microperl on my gumstix with no issues what so ever.
>
>     -Jon
>
> Steve Sakoman wrote:
>
>> I first noticed this today when attempting to do something a little
>> out of the ordinary -- a command with a quoted argument:
>>
>> date +"%A %B"
>>
>> Executing this in microperl using either back ticks or the system()
>> function doesn't work.  Playing around a little bit more, I discovered
>> that attempting commands with redirection also did not work!
>>
>> At this point I turned to Google and found this post titled
>> "Microperl: broken system calls fixed":
>>
>> http://forum.openwrt.org/viewtopic.php?id=4714
>> < http://forum.openwrt.org/viewtopic.php?id=4714 >
>>
>> I'm not sure who did the microperl port to Gumstix, but would it be
>> possible to get this fix implemented?  This post also describes a fix
>> to microperl's broken environment variable bug.
>>
>> I've been doing quite a bit of development using microperl on Gumstix
>> and have found it to be quite capable.  And if these two bugs were
>> fixed I would be a really happy camper!  The system call bug is the
>> more troublesome one, there's no simple workaround.  There's a 3 line
>> workaround for the environment bug (which oddly enough uses a system
>> call :-)
>>
>> Steve
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gumstix-users mailing list
>> gumstix-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>
>>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users