Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Singular from the command line
Author Message
  Post subject:  Re: Singular from the command line  Reply with quote
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
Post Posted: Wed Jun 11, 2014 3:33 pm
  Post subject:  Re: Singular from the command line  Reply with quote
Try single quotes:
Code:
Singular -c 'LIB "solve.lib"; quit;'
or backslash:
Code:
Singular -c "LIB \"solve.lib\"; quit;"
Post Posted: Wed Jun 11, 2014 12:57 pm
  Post subject:  Re: Singular from the command line  Reply with quote
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
Post Posted: Wed Jun 11, 2014 6:25 am
  Post subject:  Singular from the command line  Reply with quote
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!
Post Posted: Tue Jun 10, 2014 3:49 pm


It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group