The backtick syntax for commands doesn't support this kind of shell
feature. You can do this:
julia> run("/etc/passwd" |> `head -n10`)
##
# User Database
#
# Note that this file is consulted directly only when the system is running
# in single-user mode. At other times this information is provided by
# Open Directory.
#
# See the opendirectoryd(8) man page for additional information about
# Open Directory.
##
On Wed, Jun 24, 2015 at 6:32 PM, Nitin Arora <[email protected]> wrote:
> Hi I am trying to run an executable from Julia (0.3.9) which takes in a
> command line argument. It works on the command line as:
>
> program < inputfilename
>
> but when I run it using Julia "run" command:
>
> rum(`program< inputfilename`)
>
> It ignores the "<" and "inputfilename" and just runs the program without
> the input file. Is there a way to fix this ? looks like I am not inputting
> the right syntax.
>
> thanks,
> Nitin
>