Sponsored Content
Top Forums Programming is it SUSE or RHEL or Debian. How to detect programmatically? Post 302265190 by VRoemer on Friday 5th of December 2008 10:03:15 PM
Old 12-05-2008
Deleted by myself,

reason: didn't read whole post.
 

10 More Discussions You Might Find Interesting

1. Solaris

Modify Style Manager programmatically

My Java application runs on SunOS 5.8. Our use of a 3rd party class requires us to modify the Style Manager-Window setting "Allow Primary Windows On Top" - the default for this is on, we need to turn it off. Is there any way for our application, or our installation, to modify this setting? We... (0 Replies)
Discussion started by: ped52
0 Replies

2. Programming

how to find usb ports programmatically

I need to find out where a usb flash memory drive is mounted. I have used prtconf and iostat to find the information and then used popen to parse the information to find what i need. I am wondering if there are some generic functions such as ddi_ or usb_ that i can use to find such info. I would... (1 Reply)
Discussion started by: jtcoelho
1 Replies

3. Programming

Check the Disk usage Programmatically

Hi all, Do we have anyway to get the freediskspace for within a C program? I need functionality similar to 'df -h' -> which gives the % of utilization... Otherwise, if we go and use 'system ("df -h /home/myhome/")', do we have any way of capturing the output into a string and parse the... (2 Replies)
Discussion started by: SriSri
2 Replies

4. UNIX for Advanced & Expert Users

need sample system o/p RHEL/Debian

Hi, Could somebody sent me sample output of below commands on 1) Debian linux and 2) RHEL3 and 3) any RHEL version less than 3, a) uname -a b) cat /etc/issue c) cat /etc/redhat-release or other equivalent file Thanks in advance - Krishna (0 Replies)
Discussion started by: krishnamurthig
0 Replies

5. Shell Programming and Scripting

how to programmatically generate makefile variable

I make to parse the release version from a text file and set the release version label into a Makefile variable. I tried: VERSION := `grep vsn s1db.app|sed -e s/*\"// -e s/\"*//` but looks like make, unlike shell, literally just take the entire `grep ...` as the variable value. Then I tried... (3 Replies)
Discussion started by: benkial
3 Replies

6. UNIX for Dummies Questions & Answers

SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting

Well. I was recently given access to my work's machine via SSH. I'm pretty sure it's a SUSE machine, uname -a gives Linux machinename 2.6.16.60-0.54.5-bigsmp #1 SMP Fri Sep 4 01:28:03 UTC 2009 i686 i686 i386 GNU/Linux I'm not doing anything all that exciting, mostly data entry stuff. We... (14 Replies)
Discussion started by: pagrus
14 Replies

7. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

8. Red Hat

Unable to detect HP backup tapes in RHEL 6.2

Hi All, We connected 2 new tape drives to the servers. I am not able to see both HP tape drives in OS level. I am using RHEL 6.2 OS. I have scanned and rebooted the server but still can't able to find the drives. Thanks in advance..!!!! ---------- Post updated 10-22-13 at 05:07 PM... (1 Reply)
Discussion started by: Navkreddy
1 Replies

9. Solaris

How to programmatically reset a users password.?

Hello all, I have a small C++ app for my solaris admins. I need to set it up so they can reset a users password. The admin does not have the old password. How can I reset a users password to a temp password either using passwd or PAM? I need to do this from within my C++ app. I have searched... (3 Replies)
Discussion started by: ChickenPox
3 Replies

10. UNIX for Advanced & Expert Users

Help with detaching the screen programmatically

Hi, I am using screen utility for protecting from ssh disconnects. My process flow i ssomething like : a) I start screen from my desktop terminl. b)In the screen session, i ssh to one host and execute a command c)Once the above command is completed,i would like to exit via ctr-a or... (4 Replies)
Discussion started by: pandeesh
4 Replies
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)
All times are GMT -4. The time now is 05:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy