Re: system command in gnuplot

Andrew Rasmussen <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CANrsd3zZTWeje=zxptnaCK1OwfT9im12Dskua6ggYkQ320x7Ww@mail.gmail.com>
Hello,

Your error comes from the fact that gnuplot is running the system command
using the sh shell instead of bash (or whatever your usual shell is). You
can get the command to be interpreted by bash like this:

system("bash -c 'paste <(ls Q*) <(ls F*)'")

Andy

On Mon, Dec 28, 2020 at 4:11 AM [email protected] <
[email protected]> wrote:

> Hello
>
> Now I am using gnuplot (Version 5.2 patchlevel 6) on a Linux system.
> The information of operating system as follow
> Linux version 4.4.162-94.72-default (geeko@buildhost) (gcc version 4.8.5
> (SUSE Linux) )
> LSB Version:    n/a
> Distributor ID: SUSE
> Description:    SUSE Linux Enterprise Server 12 SP3
> Release:        12.3
> Codename:       n/a
>
> My question:
>  I am trying to launch a system command in gnuplot like
> Terminal type is now 'qt'
> gnuplot> system(" paste <(ls Q*) <(ls F*)")
>
> show me the error message as
> sh: -c: line 0: syntax error near unexpected token `('
> sh: -c: line 0: ` paste <(ls Q*) <(ls F*)'
>
> But if I exit the gnuplot and run the command, it can work.
> qin@csc1:~/qin /txt> paste <(ls Q*) <(ls F*)
>
> any help would be much appreciated
> have a nice day
>
> ****************************************************
> 秦志豪
> 京都大学大学院 エネルギー科学研究科
> エネルギー基礎科学専攻 プラズマ・核融合基礎学分野
> 岸本研究室
> E-mail : [email protected]
> ****************************************************
>
>
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.