Hi
I wanted to develop an application using which an administrator can
know what are the software installed on the machines on his LAN and
also the configuration details of the desktop machines (like cpu,
number of processors and their serial numbers). I don't know how to
start, what are api's a
my $dir = $array[5];
print "$loginid:$dir\n" ;
if ( -d $dir ) {
print "$dir exists !! \n";
}
else {
print "$dir does not exists !! \n";
}
} # end of while
regards
CVR
On Tue, 28 Dec 2
Hi
How do I check whether user's home directory exist or not, & if
exists then whether it is owned by his uid
The perl script will have this information :
username:x:20205:1:my name :/home/username:/bin/bash
regards
CVR
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Hi
I want to replace all occurances of 'and' with '&' in all the given files
inputfile.txt containts all the names of the files to process.
i wrote a small shell script for this
for i in `cat inputfile.txt`
do
cp $i ${i}.bk
sed -e 's/ and / & /g' ${i}.bk
Hi
Any one tried to connect Mssql server from perl which is on Solaris Machine.
I installed Class::DBI::MSSQL using CPAN and also go through the
perldoc Class::DBI::MSSQL but didn't get much.
I need one sample script and also what are the api's available in
perl to connect MSSQL serve
Hi
I am getting this error when i execute my cgi script. Here i am only
trying to connect to my mysql database.
[cmd] perl peoplemysql.cgi
install_driver(mysql) failed: Can't load
'/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBD/mysql/mysql.so'
for module DBD::mysql: ld.so.1: perl: f
Hi
I wrote this simple script :
#!/usr/local/bin/perl
use strict ;
use warnings ;
use File::Stat ;
my $filename = "/tmp/cvr.txt" ;
my $stat = new File::Stat($filename) or die " No $filename : $! \n";
print " Dev = $stat->dev \n";
print " Inode = $stat->ino \n";
print " Mode = $stat->mode \n";