Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Singular from the command line
PostPosted: Tue Jun 10, 2014 3:49 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject: Re: Singular from the command line
PostPosted: Wed Jun 11, 2014 6:25 am 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Singular from the command line
PostPosted: Wed Jun 11, 2014 12:57 pm 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
Try single quotes:
Code:
Singular -c 'LIB "solve.lib"; quit;'
or backslash:
Code:
Singular -c "LIB \"solve.lib\"; quit;"


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Singular from the command line
PostPosted: Wed Jun 11, 2014 3:33 pm 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

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