Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: I/O in Windows environment.
PostPosted: Thu Aug 11, 2005 5:31 pm 
I have used singular on unix for a few years now. currently i am in a transition to windows platform. i am having trouble understanding how to use singular in the new environment. specifically, i would apprecite any help as to how to run a specific file in a given directory and save data in this same directory. any help would be greatly appreciated.

email: [email protected]
Posted in old Singular Forum on: 2002-03-15 18:28:10+01


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 21, 2005 8:44 pm 
Singular has been ported from Linux to Windows, hence it is not really a native Windows program. The Singular installation includes a "BasicCygwin" component, which provides you with the basic Linux-like functionality (e.g. you can use bash, man, info, grep, ln and so on). We recommend to use a comfortable rxvt terminal (accessible via Start->Programs->Singular 2.03->Tools->rxvt terminal),
which runs a bash shell with preloaded settings
from /etc/profile.
So, to run a specific file in a given directory, say, DIR,
start rxvt terminal, type "cd DIR", then you can call Singular.exe in this directory just like under Linux.
(We use symbolic links for the most important .exe files in the directory /usr/local/Singbin, which is added to the PATH variable).
Within Singular, running " system("sh","pwd"); " tells
you in which directory you are. From the command line of rxvt terminal, there is almost no difference between Linux and Windows.


email: [email protected]
Posted in old Singular Forum on: 2002-03-25 13:23:09+01


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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:57 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group