[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] OT perl/linux on a raq4
- Subject: Re: [cobalt-users] OT perl/linux on a raq4
- From: Larry Smith <lesmith@xxxxxxxxx>
- Date: Mon Feb 10 20:11:01 2003
- Organization: ECSIS.NET
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
INRE [cobalt-users] OT perl/linux on a raq4:
> Hi.
>
> I got a very specific query.
> Its a linux/perl thing to be truthful, but the same command works on my
> raq3's, and has only just stopped working on my only raq4.
>
> Its an archive script, in perl, which calls the linux commands.
>
> # The following three lines required to execute unix shell commands.
>
> $ENV{'PATH'} = '/bin:/usr/bin'; # or whatever you need
> $ENV{'SHELL'} = '/bin/sh' if $ENV{'SHELL'} ne '';
> $ENV{'IFS'} = '' if $ENV{'IFS'} ne '';
>
> chdir $dir or die "Cannot chdir: $!";
>
> @args = ("tar", "cf", "archive.tar", <*.html>);
> system(@args) == 0 or die "system @args failed: $?";
>
>
> It crashes out on the <*.html> but never used to.
> If I replace it with "specific_filename.html" then there is no problem, but
> the wildcard it does not like.
>
> I recently installed a couple of bits of software on here, quicktime
> streamer, and webalizer, and since, the above comments don't work!
>
> Anyone any ideas why that would have changed?
>
>
Step
Try "ls *.html | wc -l" and see how many files there are. Sounds like you
are crossing the bounds of how much the @args variable can hold. EG too many
filenames for the program to hold at one time.
--
Larry Smith
SysAd ECSIS.NET
sysad@xxxxxxxxx