Needs some guidance to start

2005-03-22 Thread Chandrakant Reddy
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

Re: to check directory permission and owner

2004-12-28 Thread Chandrakant Reddy
= $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 2004 12:36:29 +0530, Chandrakant Reddy [EMAIL PROTECTED

to check directory permission and owner

2004-12-27 Thread Chandrakant Reddy
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

find and replace all occurance of the string from a list of files

2004-12-08 Thread Chandrakant Reddy
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

MSSQL server 200 , cgi in perl

2004-11-18 Thread Chandrakant Reddy
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

DBD::mysql error

2004-11-13 Thread Chandrakant Reddy
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:

Need help in File::Stat

2004-10-12 Thread Chandrakant Reddy
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; print