10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All :)
I want to write a shell script to find the file system usage on multiple UNIX servers.
Commands: df -g fsJCAPS
Below script works fine and it displays results on terminal/console. I want to store /redirect output on to local server from where I'm running the script.
... (3 Replies)
Discussion started by: Mohammad Nawaz
3 Replies
2. Shell Programming and Scripting
This is an odd question and I didn't really know what category it fits. I just installed Ubuntu 12.10. During the installation process, the screen informed me that Windows 7 was installed in a particular partition.
I'm just wondering how this was accomplished. Using 'fdisk -l' will indicate... (1 Reply)
Discussion started by: jamarsh
1 Replies
3. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
4. UNIX for Dummies Questions & Answers
How can you determine the level ot the operating system
on an HP UNIX System? (2 Replies)
Discussion started by: aschmid
2 Replies
5. UNIX for Dummies Questions & Answers
How to determine if a host is connected to the Internet in Unix ? (1 Reply)
Discussion started by: shuhang2
1 Replies
6. Solaris
i have a program writing in PRO C which currently running in unix version 8 tie with oracle 8i, but in the future company gonna migrate this OS to version 9.
Anything i have to prepare for my PRO C program to run in unix version 9? or anything would that impact my program couldn't run well?
what... (2 Replies)
Discussion started by: lsy
2 Replies
7. UNIX for Dummies Questions & Answers
how can i determine which type of unix
(solaris ,AIX,HP-UX...) is installed on the machine that i am working? (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
8. Slackware
Apart from the obvious, uname command, is there anyway to determine which Linux distribution and version of the distribution has been installed? (7 Replies)
Discussion started by: mbb
7 Replies
9. Solaris
Is there a way I can determine the LOM version on a Sun machine without actually shutting the system down? I'm confused. :) (2 Replies)
Discussion started by: sysera
2 Replies
10. UNIX for Dummies Questions & Answers
I'm looking for a generic (i.e. would be resident in most/all unix flavors) internal command for determining my OS and version. When I telnet to a box here @ work, I get none of that info and can't remember the equivalent of the DOS ver command; I know I used to know this! Thanks. (2 Replies)
Discussion started by: brian.wilson
2 Replies
Sys::Filesystem::Unix(3pm) User Contributed Perl Documentation Sys::Filesystem::Unix(3pm)
NAME
Sys::Filesystem::Unix - Return generic Unix filesystem information to Sys::Filesystem
SYNOPSIS
See Sys::Filesystem.
INHERITANCE
Sys::Filesystem::Unix
ISA UNIVERSAL
METHODS
version()
Return the version of the (sub)module.
readFsTab
This method provides the capability to parse a standard unix fstab file.
It expects following arguments:
fstabPath
Full qualified path to the fstab file to read.
fstabKeys
The column names for the fstab file through an array reference.
special_fs
Hash reference containing the names of all special file systems having a true value as key.
This method return true in case the specified file could be opened for reading, false otherwise.
readMntTab
This method provides the capability to read abd parse a standard unix mount-tab file. The file is locked using flock after opening it.
It expects following arguments:
mnttabPath
Full qualified path to the mnttab file to read.
mnttabKeys
The column names for the mnttab file through an array reference.
$special_fs
Hash reference containing the names of all special file systems having a true value as key.
This method return true in case the specified file could be opened for reading and locked, false otherwise.
readMounts
This method is called to parse the information got from "mount" system command. It expects following arguments:
mount_rx
Regular expression to extract the information from each mount line.
pridx Array reference containing the index for primary keys of interest in match in following order: device, mount_point, type.
keys Array reference of the columns of the match - in order of paranteses in regular expression.
special Array reference containing the names of the special file system types.
lines Array containing the lines to parse.
readSwap
This method is called to parse the information from the swap status. It expects following arguments:
swap_rx Regular expression to extract the information from each swap status line. This regular expression should have exact one pair
of parantheses to identify the swap device.
lines Array containing the lines to parse.
VERSION
$Id: Unix.pm 128 2010-05-12 13:16:44Z trevor $
AUTHOR
Nicola Worthington <nicolaw@cpan.org> - <http://perlgirl.org.uk>
Jens Rehsack <rehsack@cpan.org> - <http://www.rehsack.de/>
COPYRIGHT
Copyright 2004,2005,2006 Nicola Worthington. Copyright 2008-2010 Jens Rehsack.
This software is licensed under The Apache Software License, Version 2.0.
<http://www.apache.org/licenses/LICENSE-2.0>
perl v5.10.1 2010-05-18 Sys::Filesystem::Unix(3pm)