[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] OT perl/linux on a raq4
- Subject: [cobalt-users] OT perl/linux on a raq4
- From: Step Firth <step@xxxxxxxxxxxxxxx>
- Date: Mon Feb 10 17:05:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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