[Chicago-talk] Capturing OS command output.

JT Smith jt at plainblack.com
Mon Jun 20 08:20:42 PDT 2005


Use ticks

my $var = `which convert`;


On Mon, 20 Jun 2005 08:16:52 -0700 (PDT)
  Richard Reina <richard at rushlogistics.com> wrote:
> 
> Does anyone know how can I get the scalar to give me
> the path of the convert command?
> 
> my $convert_path = system("which convert");
> 
> just gives me the success or fail results.
> 
> Thanks,
> Richard
> 
> A people that values its privileges above its principles soon loses both.
> -Dwight D. Eisenhower.
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk


JT ~ Plain Black
ph: 703-286-2525 ext. 810
fax: 312-264-5382
http://www.plainblack.com

Create like a god, command like a king, work like a slave.


More information about the Chicago-talk mailing list