james734 has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be great.#!/usr/local/bin/perl -w -i.bak #macc auto format use warnings; use strict; use Shell; my ($file); print "Enter File Name to be converted.\n"; print "File should be in this direstory.\n"; $file = <STDIN>; open(IN, $file) or die "The file $file". "is not present.\n"; system qw "perl /Users/james/perlstuff/macc/macc1 $file";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing user input to a shell command
by jdporter (Paladin) on May 17, 2007 at 21:44 UTC | |
by james734 (Initiate) on May 17, 2007 at 22:06 UTC | |
by jdporter (Paladin) on May 17, 2007 at 22:18 UTC | |
| |
by adrianh (Chancellor) on May 20, 2007 at 16:21 UTC | |
by jdporter (Paladin) on May 20, 2007 at 18:57 UTC | |
|
Re: Passing user input to a shell command
by liverpole (Monsignor) on May 17, 2007 at 21:48 UTC | |
|
Re: Passing user input to a shell command
by shmem (Chancellor) on May 17, 2007 at 22:17 UTC | |
|
Re: Passing user input to a shell command
by FunkyMonk (Bishop) on May 17, 2007 at 22:03 UTC |