Singular
https://www.singular.uni-kl.de/forum/

Singular from the command line
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2416
Page 1 of 1

Author:  mdb [ Tue Jun 10, 2014 3:49 pm ]
Post subject:  Singular from the command line

I would like to run Singular without entering commands in its shell (at the prompt ">")

eg. Singular -c "quit;" will open Singular and then exit

I would like to use this with multiple statements such as
Singular -c "LIB "solve.lib"; quit;"

Is there a website/doc which explains the syntax and gives examples?

Thanks!

Author:  vinay [ Wed Jun 11, 2014 6:25 am ]
Post subject:  Re: Singular from the command line

You can put your code in a simple text file say code.sing and run
Code:
Singular < code.sing
on the command line.

You may suppress the info messages by -q option.

Hope this helps.

VInay

Author:  malex [ Wed Jun 11, 2014 12:57 pm ]
Post subject:  Re: Singular from the command line

Try single quotes:
Code:
Singular -c 'LIB "solve.lib"; quit;'
or backslash:
Code:
Singular -c "LIB \"solve.lib\"; quit;"

Author:  mdb [ Wed Jun 11, 2014 3:33 pm ]
Post subject:  Re: Singular from the command line

Singular < code.sing

-this worked perfectly. thanks! It's nice because you do not have to add any additional quotes, etc. you simply put line-by-line the commands you would type in while in the Singular shell

thanks again :D

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/