Hi,
I am new to perl.
I am trying to write a perl program that will print out following output.
1:1
2:1,2
3:1,2,3
4:1,2,3,4
5:1,2,3,4,5
6:1,2,3,4,5,6
Script need to be written in for loop.
Please help
thanks
-Lalit (1 Reply)
I wish to programmatically determine whether a solaris system is 32-bit or 64-bit. Investigation on the web suggested that the following commands were the right way to test this:
# isainfo -kv
# getconf LONG_BIT
Strangely, on all three of the solaris systems I have access to, isainfo... (2 Replies)
Hello all!
I'm trying to compile the GD module for Perl on Redhat AS 4.
It fails when trying to link to libjpeg. The machine is a AMD Opteron 64 machine so I figure it's some kind of 32 vs 64bit interference in the lib dir?
Any idéas?
CPAN.pm: Going to build L/LD/LDS/GD-2.41.tar.gz
... (0 Replies)
I have a Perl script, that does a system call with rsh to a remote machine.
#!/usr/bin/env perl
system ("rsh remote-machine echo 99");
And I get the following:
stty: standard input: Invalid argument
99
I've tried replacing the system call with below, but I still get the same stty... (1 Reply)
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Hi ,
we have a issue in server, we are running a perl script to connect our clients, but we are not able to connect, every time we are getting the
"Invalid argument error"
Even i checked all the necessary perl modules are i installed in this server,
#create the listen socket
my... (2 Replies)
I'm trying to execute something like this:
exec perl -i -pe 's/\015/\012/g' '${file}'
in my expect script and I get:
error "invalid command name \"perl\".
however, if I run
perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"
directly in my terminal, it runs fine. I'm an... (4 Replies)
Hi, guys, i have a script i inherited from a coworker but i'm not perl savy. The script works but i would like it to work better. I want to run this command
./ciscomgrtest.pl -r "show version" -h hosts.router
and have the script goto each router in the hosts.router file and run the command... (2 Replies)
I have PERL program( which uses diff modules inside the program) and running it using installed PERL ( PERL 5.8.8) on unix box.
Now I want to run these programs on a diff unix box , but, they don't want to install PERL .
I never compiled PERL before . what are my options to run this program... (2 Replies)
Hi all,
when I issue a lspv <hdisk>, I get
TOTAL PPs: 7199 (1842944 megabytes)
When I issue a getconf DISK_SIZE /dev/<hdisk>, I get
1048576
Where do those additional ~800 GB come from the output of lspv.. anyone an idea?
The volume is an EMC LUN provided by a VIOS and... (2 Replies)
Discussion started by: zaxxon
2 Replies
LEARN ABOUT OPENDARWIN
getconf
GETCONF(1) Debian GNU/Linux GETCONF(1)NAME
getconf - Query system configuration variables
SYNOPSIS
getconf -a
getconf [-v specification] system_var
getconf [-v specification] path_var pathname
DESCRIPTION -a
Displays all configuration variables for the current system
and their values.
-v
Indicate the specification and version for which to obtain
configuration variables.
system_var
A system configuration variable, as defined by sysconf(3) or
confstr(3).
path_var
A system configuration variable as defined by pathconf(3). This
must be used with a pathname.
AUTHOR
getconf was written by Roland McGrath for the GNU C Library
This man page was written by Ben Collins <bcollins@debian.org> for the Debian GNU/Linux system.
SEE ALSO sysconf(3), pathconf(3), confstr(3)3rd Berkeley Distribution squeeze GETCONF(1)