12-21-2004
Thanks cbk, but I'm still having trouble
If I change the variable declaration to
$RRD_MG::dir = 'compdata'; and leave the variables as
$dir within the sub, I get
Variable "$dir" is not imported at (eval 661) line 26.
Now, if I change the
$dir within the functions to
${RRD_MG::dir}, as you suggested, I do not get any errors, but I also do not get any output. The code works properly if I place
my $dir = 'compdata'; inside of each sub.
I'll get this package stuff yet...
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
say the package is in the ~/ and it's ~/packageFoo.pm
I can use usePackage.pl in ~/ (~/usePackage.pl).
Now, if I move it to ~/subDIR/usePackage.pl, the script won't work because it's not in the same DIR with packageFoo.pm
How can i fix it?
Thanks
Gusla (1 Reply)
Discussion started by: gusla
1 Replies
2. Shell Programming and Scripting
can someone tell me how below package command worked?
I understand how global1.pl works.. but i don't see how global3.pl is working..
Is package Fred command having first output look into $main:name???
# cat global3.pl
#!/usr/bin/perl -w
#use strict;
$main::name = "Your name Here";... (1 Reply)
Discussion started by: hankooknara
1 Replies
3. Shell Programming and Scripting
I know any globals can be directly modified in a function without passing/returning parameters- provided the function is written within the same file. However, when I wrote functions in a saparate file (so hopefully they can be re-used by multiple script programs), and then call them from the main,... (11 Replies)
Discussion started by: bluemoon1
11 Replies
4. Shell Programming and Scripting
Hi,
i am new to perl and i used to manullay gathering statistics since our database servers are 8i,
could any body help to get the perl script or any link to automate this work.
Thanks
Prakash (1 Reply)
Discussion started by: prakash.gr
1 Replies
5. Shell Programming and Scripting
Hi
we are having more than 10k file source code clutterred across different directories.
1. we want to find duplicate file name
2. all java files and having having below content in various folder under /home/raxit/src
---------
/*comment etc for few line
*/
package hello.a.b.c;
... (0 Replies)
Discussion started by: raxitsheth
0 Replies
6. Shell Programming and Scripting
I have a Perl package, which is widely used and tested, but recently a version in another language was added. The relevant po-files have been reviewed for this and are ready for testing. What are the steps to select the language by the user? From my understanding the language environment variable... (3 Replies)
Discussion started by: figaro
3 Replies
7. UNIX for Advanced & Expert Users
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies
8. Shell Programming and Scripting
I have executed the below perl script for copying the file from one server to another server using scp.
#!/usr/bin/perl -w
use Net::SCP::Expect;
use strict;
$server= "x.x.x.x";
my $source = "/mypath/mypath";
my $destination = "/home/";
print "Login...Starting scp...";
$user="admin";... (1 Reply)
Discussion started by: scriptscript
1 Replies
9. Shell Programming and Scripting
Hi all,
recently I found that $_SERVER does not deliver the complete url with query anymore on my server.
http://www.example.org/search.php?stichwort=wiki
echo $_SERVER;
/search.phpHowever $GLOBALS works in this case.
http://www.example.org/search.php?stichwort=wiki
echo $GLOBALS;... (1 Reply)
Discussion started by: lowmaster
1 Replies
LEARN ABOUT OPENDARWIN
set_color
set_color(1) fish set_color(1)
NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)