Welcome, Guest. Please login or register.

Author Topic: Help in creating a script to launch an executable...  (Read 1036 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline keropiTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2004
  • Posts: 2466
    • Show only replies by keropi
Help in creating a script to launch an executable...
« on: May 03, 2007, 07:45:40 PM »
I want to make a script to turn off cpu caches, run the prog, and when the prog exits to enable the caches again....
the command I need to run is: gg FAST

I tried a simple script, but the cpu_enable-cache command does not execute _after_ gg quits... (reminds me of win9x DOS scripts made to unpack rip-games, I wish there was a startx command for amiga! or is there one? it launches a prog, but the batch file does not continue until startx is finished...)

why? when using a GoldeGate3/486 card on a cpu higher than 030, it is advised in order to run OK, to disable the amiga cpu caches... on my csppc with socketed oscillators, when I use the 64mhz one for the 060 the GG program does not even start! so I reverted to 50mhz, but still need a better solution to run the GG software reliably...
any ideas??
thanks!  :-D
 

Offline MrZammler

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 720
    • Show only replies by MrZammler
Re: Help in creating a script to launch an executable...
« Reply #1 on: May 03, 2007, 08:03:46 PM »
c:cpu NOCACHE will turn off your caches.

So something like:

c:cpu NOCACHE
gg FAST
c:cpu CACHE

will turn it back on. Run the script with execute, or make it executable: protect script +E

Check the cpu command for more info "cpu ?"

Edit: Oh, just saw: you saying that the c:cpu CACHE part will not execute after gg exits...
Anyway is the only way
 

Offline keropiTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2004
  • Posts: 2466
    • Show only replies by keropi
Re: Help in creating a script to launch an executable...
« Reply #2 on: May 03, 2007, 08:06:14 PM »
yes, I know that Mr !

what I want to do is have the script to wait until GG FAST exits, and then enable the caches again...
GG FAST is the prog that runs while u use the goldengate card... it opens a small window on wb... the prob is that caches are enabled again after the window creation...
 

Offline MrZammler

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 720
    • Show only replies by MrZammler
Re: Help in creating a script to launch an executable...
« Reply #3 on: May 03, 2007, 08:14:20 PM »
Ok, if you dont find an answer here, pop by the irc channel, I have something on my mind.  :-D
Anyway is the only way