Spaces In A Directory


Paradox

oh em gee
Joined
Nov 15, 2005
Messages
1,748
Age
36
Location
England
Website
Visit site
#!/bin/sh

/mnt/sd/Utilities/CPU_Tweaker/CPU_Tweaker.gpe 1 1 285
cd /mnt/sd/Emulators/Super Nintendo/
./SSNES.gpe
sync
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

how can i fix the third line so it works with the space? thanks
 
Super_Nintendo

... sorry, but it's just easier for me at least. I'm lazy ;)
 
Add a backslash () in front of every space.
 
Last edited by a moderator:
ok so... now does anyone know why this doesnt work?

#!/bin/sh

/mnt/sd/Utilities/CPU\ Tweaker/CPU\ Tweaker.gpe 1 1 285
cd /mnt/sd/Emulators/Super\ Nintendo/
./SSNES.gpe
sync
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

the script in question is being ran from /mnt/sd/Emulators/Super\ Nintendo/

its booting me back to the gp2x menu after running it (SHOULD be making it so SSNES can run at overclocked 285
 
Set it to 240 first, then see if that works, just to rule out the overclock amount.

Remember, not all programs can overclock to the same level.
 
Tried surrounding it in quotes?

eg.
cd "/mnt/sd/Emulators/Super Nintendo/"

Also, how come your first script uses CPU_Tweaker, whilst the second uses CPU Tweaker?
 
well once i found out you could put a backslash for spaces i renamed my directories / filename back so they are underscore free, thats all
 
Back
Top