mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   PARI/GP (https://www.mersenneforum.org/forumdisplay.php?f=155)
-   -   PARI's commands (https://www.mersenneforum.org/showthread.php?t=13636)

science_man_88 2010-09-16 00:36

[QUOTE=CRGreathouse;229911]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[/code]

but I'm not at a Windows machine at the moment so I can't test it.[/QUOTE]

tell me where to put it in Pari directory ?

CRGreathouse 2010-09-16 01:47

[QUOTE=science_man_88;229915]tell me where to put it in Pari directory ?[/QUOTE]

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.)

science_man_88 2010-09-16 11:39

[QUOTE=CRGreathouse;229911]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[/code]

but I'm not at a Windows machine at the moment so I can't test it.[/QUOTE]

well I can't go above 127 without the error and that's when it comes up lol.

science_man_88 2010-09-16 11:53

I just realised it's only when i try files i think.

science_man_88 2010-09-16 11:56

got it working on C lol nice.

CRGreathouse 2010-09-16 13:33

[QUOTE=science_man_88;229943]well I can't go above 127 without the error and that's when it comes up lol.[/QUOTE]

...because below that point you're not using MPQS.

science_man_88 2010-09-16 17:46

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 2010-09-16 17:56

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.

CRGreathouse 2010-09-16 18:06

[QUOTE=science_man_88;229978]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.[/QUOTE]

Well, I did give you a file... did you try it?

science_man_88 2010-09-16 18:12

[QUOTE=CRGreathouse;229980]Well, I did give you a file... did you try it?[/QUOTE]

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.

CRGreathouse 2010-09-16 18:19

[QUOTE=science_man_88;229981]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.[/QUOTE]

That's what my batch file does: changes the TEMP variable (temporarily!), then runs gp.


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

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