9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm facing issues while trying to run a sample program on Linux.
If I try to run the script using the command "sh <filename.prog>", it doesn't work. But, if I try to execute it using the command "ksh <filename.prog>", it works fine.
Even ". ./filename.prog" works fine.
Can you... (6 Replies)
Discussion started by: venkatesh17
6 Replies
2. Shell Programming and Scripting
Hi all,
I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran.
I get an error, of course, since I don't know what I'm doing really.
Here is the code:
#!/opt/perl/bin/perl -w
... (14 Replies)
Discussion started by: zixzix01
14 Replies
3. Shell Programming and Scripting
Hello All,
I am in process of migrating all my scripts from AIX box to Linux box. In one of my script I calculate my last week date with the below command
$ TZ=EDT+172 date +%F
2012-12-13
$ uname -a
AIX 1 7 000B29AAD400
Now when I tried running the same in Linux, it gives a false... (2 Replies)
Discussion started by: sathyaonnuix
2 Replies
4. Shell Programming and Scripting
Hello All,
This is my first script in PERL. Hence require your help in moving further.
I have a script which should populate the values for Today, Yesterday output.
For which I use timeFrame as a variable to obtain the time in hrs:mm as 10:00.
All I want is, I want my timeFrame to start... (4 Replies)
Discussion started by: sathyaonnuix
4 Replies
5. Shell Programming and Scripting
Hi all,
I need your help to increment a time by one hour.
The difficulty is the time is in a string format and not a value
cat file | awk '{print $1,$2}'
09/02/2011 20:11
09/03/2011 20:11
I want to change the time to be as follows
09/02/2011 21:11 or even 09/02/2011 20:21
Can... (2 Replies)
Discussion started by: Junes
2 Replies
6. IP Networking
Hello,
I administer a bunch of Apple XServes running OS X Server and I have one in particular that is annoying me since I brought it online.
The host is a dual quad core Intel CPU. en0 is attached to a routable network and en1 is attached to a non-routable network (private switch that all the... (0 Replies)
Discussion started by: gnat
0 Replies
7. Shell Programming and Scripting
Hey folks! I'm trying to run a tcpdump command that monitors for possible malicious traffic. I want to be able to run this on any of several remote boxes that I monitor which all have different capture interfaces. I've gotten the script to the point where it logs into the box and attempts to run... (8 Replies)
Discussion started by: JASI
8 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am facing a weird problem with the 'Date'. If I check date multiple times in a short interval I see a different time altogether. Here is an example
$ date
Tue Jul 15 02:07:22 PDT 2008
$ date
Tue Jul 15 02:07:23 PDT 2008
$ date
Tue Jul 15 03:20:42 PDT 2008
$ date
Tue Jul 15... (5 Replies)
Discussion started by: sumitb74
5 Replies
9. Shell Programming and Scripting
I have a solaris9 x86 server using ssh as follows:
SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.
The remote server solaris9 sparc has exactly the same version ssh installed.
I am running a script on my server which includes the following command to run a script on the remote server:... (4 Replies)
Discussion started by: frustrated1
4 Replies
Carp::Clan::Share(3pm) User Contributed Perl Documentation Carp::Clan::Share(3pm)
NAME
Carp::Clan::Share - Share your Carp::Clan settings with your whole Clan
VERSION
Version 0.013
SYNOPSIS
package My::Namespace
use Carp::Clan::Share; # My::Namespace::Carp now exists
...
package My::Namespace::Module
use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;"
...
package My::Other::Namespace;
# You can also pass options through to Carp::Clan
use Carp::Clan::Share qw/verbose/; # My::Other::Namespace::Carp now exists
...
package My::Other::Namespace::Module
use My::Other::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Other::Namespace:: verbose/;"
...
DESCRIPTION
This is a very lightweight helper module (actually just an import method) that will automagically create a __PACKAGE__::Carp module for
you.
Any arguments passed to the import (e.g. via use) method are forwarded along to Carp::Clan.
NOTE: If you use this from a package ending with ::Carp, then it will use the parent of of that package as the target namespace
package My::Namespace::Carp;
use Carp::Clan::Share;
package My::Namespace::Module
use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;"
SEE ALSO
Carp::Clan
Carp
AUTHOR
Robert Krimen, "<rkrimen at cpan.org>"
BUGS
Please report any bugs or feature requests to "bug-carp-clan-share at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Carp-Clan-Share>. I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Carp::Clan::Share
You can also look for information at:
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Carp-Clan-Share>
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Carp-Clan-Share>
o CPAN Ratings
<http://cpanratings.perl.org/d/Carp-Clan-Share>
o Search CPAN
<http://search.cpan.org/dist/Carp-Clan-Share>
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2008 Robert Krimen
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2009-08-10 Carp::Clan::Share(3pm)