mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-09-16, 00:36   #1453
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Hmm. It looks like you could make it work if you changed the environment variable "TEMP" to point to your portable drive, it would work. You *may* be able to do this:

Code:
@echo off
REM ************************************************
REM *  Put this in a file called pari.bat          *
REM *  Change F:\ to your portable's drive letter  *
REM *  Change C:\Program... as needed              *
REM ************************************************
set TEMP=F:\tmp
cd "C:\Program Files\PARI"
gp
but I'm not at a Windows machine at the moment so I can't test it.
tell me where to put it in Pari directory ?
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 01:47   #1454
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
tell me where to put it in Pari directory ?
You can put it anywhere you like, then run it by double-clicking. Be sure that the directories are right, though -- your Pari directory may be "C:\Program Files (x86)\PARI", for example, rather than what I wrote above. Of course getting the temp directory correct is critical in this case. (You probably also need to create the directory on F:\ or whatever.)

Last fiddled with by CRGreathouse on 2010-09-16 at 01:48
CRGreathouse is offline   Reply With Quote
Old 2010-09-16, 11:39   #1455
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Hmm. It looks like you could make it work if you changed the environment variable "TEMP" to point to your portable drive, it would work. You *may* be able to do this:

Code:
@echo off
REM ************************************************
REM *  Put this in a file called pari.bat          *
REM *  Change F:\ to your portable's drive letter  *
REM *  Change C:\Program... as needed              *
REM ************************************************
set TEMP=F:\tmp
cd "C:\Program Files\PARI"
gp
but I'm not at a Windows machine at the moment so I can't test it.
well I can't go above 127 without the error and that's when it comes up lol.
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 11:53   #1456
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

I just realised it's only when i try files i think.
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 11:56   #1457
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

got it working on C lol nice.
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 13:33   #1458
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
well I can't go above 127 without the error and that's when it comes up lol.
...because below that point you're not using MPQS.
CRGreathouse is offline   Reply With Quote
Old 2010-09-16, 17:46   #1459
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

it let me make folders but not files even though I used to all the time I think lol so i was able to make the temp folder in C yeah lol.
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 17:56   #1460
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

I'd still like to get it to work for all portables as well then I can have a script to change it on the fly so I can make them bigger and bigger lol. actually sounds like too much time to do it lol.

Last fiddled with by science_man_88 on 2010-09-16 at 17:56
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 18:06   #1461
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I'd still like to get it to work for all portables as well then I can have a script to change it on the fly so I can make them bigger and bigger lol. actually sounds like too much time to do it lol.
Well, I did give you a file... did you try it?
CRGreathouse is offline   Reply With Quote
Old 2010-09-16, 18:12   #1462
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Well, I did give you a file... did you try it?
I think it couldn't create it in the other drives on it's own like write can so I'll have to set it up first I guess then i think the main thing is changing the TEMP variable on the fly.

Last fiddled with by science_man_88 on 2010-09-16 at 18:12
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 18:19   #1463
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I think it couldn't create it in the other drives on it's own like write can so I'll have to set it up first I guess then i think the main thing is changing the TEMP variable on the fly.
That's what my batch file does: changes the TEMP variable (temporarily!), then runs gp.
CRGreathouse is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

All times are UTC. The time now is 23:10.


Fri Aug 6 23:10:40 UTC 2021 up 14 days, 17:39, 1 user, load averages: 4.91, 4.22, 4.03

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.