On Wed Oct 09, 2002 at 02:23:22PM -0700, Manish Tiwari wrote:
> Hi 
> 
> i was trying to do something like
> 
> @data = `ls -ltr ` ;

how about,

if defined(@data = `ls -ltr`){
   block of code
}

> 
> < do some operation check whether ls command actually worked> 
> 
> now i want to pass the contents of "data" thru unix commands like egrep and
> sort
> 
> 
> so in all operation will be like 
> 
> ls -ltr | grep -v total | sort +8
> 
> but making sure that ls command actually worked
> 
> 
> any help
> 
> 
> Thanx
> Manish

-- 
Brian Noble
Tech Support Engineer
[EMAIL PROTECTED]
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to