10 More Discussions You Might Find Interesting
1. BSD
I want to change my MAC at reboot, so making it a cron job like the following in BSD.
Can I do this in the jail for the user, setting it as a command or should it be a script?
I would set it as a command
openssl rand -hex 6 | sed 's/\(..)/\1:/g; s/.$//' just to test it, it works.
To... (0 Replies)
Discussion started by: 1in10
0 Replies
2. Solaris
Hi,
I am trying to build per 5.20.1 on solaris 10 and getting below compilation error.
Creating Makefile.PL in cpan/Archive-Tar for Archive::Tar
Running Makefile.PL in cpan/Archive-Tar
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none... (1 Reply)
Discussion started by: vikrambhimbar
1 Replies
3. Shell Programming and Scripting
Hi,
I have a shell script which executes some sql. When the shell script executes the sql's logging is shown on the console. I need to grep some data from this output shown on console. So I do the following
hive -f load.adj.hql 2>&1 | tee c.txt
echo $?
A=`grep num_rows c.txt`
$? will... (1 Reply)
Discussion started by: wahi80
1 Replies
4. Shell Programming and Scripting
Hello to all,
The Regex below is supposed to match all strings except RR45. I've tested in regex101.com and it works, butwhen I try to use it with the perl command below I get the error shown.
Regex=(?<=^|RR45)(?!RR45).+?(?=RR45|$)
How to fix this? I'm using Cygwin.
$ echo... (9 Replies)
Discussion started by: Ophiuchus
9 Replies
5. Fedora
Okay, so I'm not a complete newb when it comes to using Unix/Linux. I've been using Ubuntu for a few years now and I've dipped my toes into a few other distros but now I want to get a bit serious.
I'm looking at becoming a sysadmin but the trouble is...I have no idea where to start. What I'm... (1 Reply)
Discussion started by: Tamachan87
1 Replies
6. Shell Programming and Scripting
Hi Buddies,
my pc has two CPU, so CPU1 and CPU2.
I have a perl "a.pl", when i "./a.pl", i can see the CPU1 is full or CPU2 is full, mean only one is full, another one is idle.
Wonderring what shall i do in order to let both CPU to process this a.pl.:(
Thanks (1 Reply)
Discussion started by: jimmy_y
1 Replies
7. HP-UX
Hi, I'm searching website where there is software for HP-UX operating system in free download because I must install Perl, Make and Gmake on HP-UX server. Have you goods URL for me ?
Thank you very much!
bye
Staaan (2 Replies)
Discussion started by: staaan
2 Replies
8. Shell Programming and Scripting
Say I have a single bin directory with Linux and SunOS executables, like this:
bin/myprog_lnx
bin/myprog_sun
Assume these programs read from stdin and write to stdout and, thus, are meant to be run like this:
myprog_lnx < filein > fileout
My users may log in from a Linux or Solaris... (3 Replies)
Discussion started by: gsal
3 Replies
9. Linux
found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution :)
to encode an avi to to an nokia e71 recognized mp4 format:
ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop... (2 Replies)
Discussion started by: mr_manny
2 Replies
10. News, Links, Events and Announcements
OMGosh!!!
PERL OWZORZ ME!!!!!!!
ok ok let me take a deep breath.....
altho i have just started learning perl and scripting in perl. this is like the BOMB!!!.
you remember when you started shell scripting and you felt limitless. this is how i feel now. how could i have ever lived my life... (4 Replies)
Discussion started by: Optimus_P
4 Replies
PERLMACHTEN(1) Perl Programmers Reference Guide PERLMACHTEN(1)
NAME
README.machten - Perl version 5 on Power MachTen systems
DESCRIPTION
This document describes how to build Perl 5 on Power MachTen systems, and discusses a few wrinkles in the implementation.
Compiling Perl 5 on MachTen
To compile perl under MachTen 4.1.4 (and probably earlier versions):
./Configure -de
make
make test
make install
This builds and installs a statically-linked perl; MachTen's dynamic linking facilities are not adequate to support Perl's use of dynami-
cally linked libraries. (See hints/machten.sh for more information.)
You should have at least 32 megabytes of free memory on your system before running the "make" command.
For much more information on building perl -- for example, on how to change the default installation directory -- see INSTALL.
Failures during "make test" on MachTen
op/lexassign.t
This test may fail when first run after building perl. It does not fail subsequently. The cause is unknown.
pragma/warnings.t
Test 257 fails due to a failure to warn about attempts to read from a filehandle which is a duplicate of stdout when stdout is attached
to a pipe. The output of the test contains a block comment which discusses a different failure, not applicable to MachTen.
The root of the problem is that Machten does not assign a file type to either end of a pipe (see stat), resulting, among other things
in Perl's "-p" test failing on file descriptors belonging to pipes. As a result, perl becomes confused, and the test for reading from
a write-only file fails. I am reluctant to patch perl to get around this, as it's clearly an OS bug (about which Tenon has been
informed), and limited in its effect on practical Perl programs.
Building external modules on MachTen
To add an external module to perl, build in the normal way, which is documented in ExtUtils::MakeMaker, or which can be driven automati-
cally by the CPAN module (see CPAN), which is part of the standard distribution. If you want to install a module which contains XS code (C
or C++ source which compiles to object code for linking with perl), you will have to replace your perl binary with a new version containing
the new statically-linked object module. The build process tells you how to do this.
There is a gotcha, however, which users usually encounter immediately they respond to CPAN's invitation to "install Bundle::CPAN". When
installing a bundle -- a group of modules which together achieve some particular purpose, the installation process for later modules in the
bundle tends to assume that earlier modules have been fully installed and are available for use. This is not true on a statically-linked
system for earlier modules which contain XS code. As a result the installation of the bundle fails. The work-around is not to install the
bundle as a one-shot operation, but instead to see what modules it contains, and install these one-at-a-time by hand in the order given.
AUTHOR
Dominic Dunlop <domo@computer.org>
DATE
Version 1.0.1 2000-03-27
perl v5.8.0 2003-02-18 PERLMACHTEN(1)