01-30-2012
Thanks for your responses, I'm going to test them now and get back to you.... : )
---------- Post updated at 04:26 PM ---------- Previous update was at 03:34 PM ----------
Hi admin_xor,
I got this error:
uname: Not a recognized flag: o
Usage: uname [-snlrvmaxupfFMS:T:L]
Looks like the uname -o after the commas isn't a valid flag, there are others...can you tell me which to try next? There are more than I want to try using trial and error unless I have to....don't want unexpected results to cause issues in the environment if I can help it.
Thanks,
D
---------- Post updated at 04:38 PM ---------- Previous update was at 04:26 PM ----------
I think I will try the -r flag....brb
---------- Post updated at 04:53 PM ---------- Previous update was at 04:38 PM ----------
Hi all,
I just used the"-x" flag to gather all the system info and dump into the file. It works beautifully, thank you all so much!!
Cheers,
D
10 More Discussions You Might Find Interesting
1. Solaris
We are making some changes, and are now using Weblogic as the webserver on one of my projects. I would like for the non root user running Weblogic to be able to bind to port 80. (10 Replies)
Discussion started by: 98_1LE
10 Replies
2. SCO
Hi All,
I am new to shell scripting.
Can someone let me know, how to check whether the user exists in the remote system?
I am building a new unix box and before I proceed installing the appliation , I want to check whether the required users are created in the system .
how to do this ?... (1 Reply)
Discussion started by: Srini75
1 Replies
3. UNIX for Dummies Questions & Answers
I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit.
Logically, I'm looking for the best way to approach this
Thanks for any assistance in advance.
Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 Replies
4. UNIX for Dummies Questions & Answers
I am looking for the syntax to check which ID is executing script.sh. If the the ID, is not user1 then I want the script to exit and return to command prompt, if it is user1, then I want the script to continue. Any help would be greatly appreciate.
Thank you.
Chris (3 Replies)
Discussion started by: cpolikowsky
3 Replies
5. Shell Programming and Scripting
I have 2 separate Bourne shell scripts with 2 questions in Sun O/S & UNIX environment.
Question 1: One of the scripts is supposed to be executed by "root" user only but cannot be executed after user executes "su - oracle". How can I check in the script whether the current user is "root" user?... (8 Replies)
Discussion started by: totziens
8 Replies
6. Shell Programming and Scripting
Hi,
i have a script 'a.sh' that should be called only by certain scripts like b.sh, c.sh
Inside a.sh, how can i determine
1) if this script was run directly from command prompt (or scheduler)
2) if called via other scripts?
Is there an easy way to get parent process name (not just pid),... (2 Replies)
Discussion started by: ysrinu
2 Replies
7. Shell Programming and Scripting
I need a script to figure out if a user's last login was 90 days or older. OS=AIX 5.3, shell=Korn
Here's what I have so far:
====
#!/usr/bin/ksh
NOW=`lsuser -a time_last_login root | awk -F= '{ print $2 }'`
(( LAST_LOGIN_TIME = 0 ))
(( DIFF = $NOW - $LAST_LOGIN_TIME ))
lsuser -a... (3 Replies)
Discussion started by: pdtak
3 Replies
8. Shell Programming and Scripting
Hello EveryOne,
I am new to *ix. some could help to write a script.
Problem :- Have to ssh to so many client and check port or filesystem usage, so thinking to automate using script.
What i Need:- when i run script on my Launchpad server, it should
Should ask and SSH to user provided... (3 Replies)
Discussion started by: MeFirst
3 Replies
9. Ubuntu
How to check user is in sudoers file or not?
or can list out the user that in sudoer file? (1 Reply)
Discussion started by: mampwamp
1 Replies
10. Shell Programming and Scripting
How to check the user input to be valid using shell script?
The valid input is in the format like as follows.
1. It can only have r,w,x or a hyphen and nothing else.
2. ensure the r, w, x are in the correct order.
for example: rwxr-xr-x is a valid format.
Thanks (5 Replies)
Discussion started by: hyeewang
5 Replies
LEARN ABOUT DEBIAN
module::packaged
Module::Packaged(3pm) User Contributed Perl Documentation Module::Packaged(3pm)
NAME
Module::Packaged - Report upon packages of CPAN distributions
SYNOPSIS
use Module::Packaged;
my $p = Module::Packaged->new();
my $dists = $p->check('Archive-Tar');
# $dists is now:
# {
# cpan => '1.08',
# debian => '1.03',
# fedora => '0.22',
# freebsd => '1.07',
# gentoo => '1.05',
# openbsd => '0.22',
# suse => '0.23',
# }
# meaning that Archive-Tar is at version 1.08 on CPAN but only at
# version 1.07 on FreeBSD, version 1.05 on Gentoo, version 1.03 on
# Debian, version 0.23 on SUSE and version 0.22 on OpenBSD
DESCRIPTION
CPAN consists of distributions. However, CPAN is not an isolated system - distributions are also packaged in other places, such as for
operating systems. This module reports whether CPAN distributions are packaged for various operating systems, and which version they have.
Only CPAN, Debian, Fedora (Core 2), FreeBSD, Gentoo, Mandriva (10.1), OpenBSD (3.6) and SUSE (9.2) are currently supported. I want to
support everything else. Patches are welcome.
The data is fetched from the net and cached for an hour.
METHODS
new()
The new() method is a constructor:
my $p = Module::Packaged->new();
check()
The check() method returns a hash reference. The keys are various distributions, the values the version number included:
my $dists = $p->check('Archive-Tar');
COPYRIGHT
Copyright (c) 2003-5 Leon Brocard. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
AUTHOR
Leon Brocard, leon@astray.com
perl v5.12.4 2011-09-17 Module::Packaged(3pm)