*Copy with wildcards
Jonathan Dawes (1547) 26 posts |
Hi All, copy Wheezey.* @ cat Wheezey.* info Wheezey.* The ADFS manual (which is all I have found so far, RISCOS newby!) suggests that this should work, but I can’t get wildcards to work at all! Can anyone point me towards the light? Thanks |
Jonathan Dawes (1547) 26 posts |
How exciting! I seem to be much more advanced that I thought. No one can answer my question! Either that or I’m being very thick and you’re all too polite to point it out :-) Jon |
Chris Evans (457) 1614 posts |
Minecraft-Pi isn’t that a Wheezey program? I gather you can (with the right set up) swap which flavour of Linux is running. This AIUI is done using a common kernel. n.b. The last time I used wild card file access was ADFS on a BBC Master. I suspect many other RISC OS users have had little or no experience of them! |
Chris Hall (132) 3554 posts |
The syntax of the cat command is cat [<directory>]. cat <filename> will produce the error you mention. You can see this by typing *Help Cat copy Wheezey.* @.* will copy @.Wheezey.* to @.Wheezey.* because @ is the currently selected directory (not much use) but as Wheezey is a file and not a directory it will fail with the error you have quoted. The root directory is called $ info Wheezey.* will tell you about the object Wheezey. Objects can be files or directories or image files. Image files are files that are interpreted to contain files, like a zip archive. If the software that interprets the image file has not been seen by the filer, then the image file will appear to the system as a file. Why not do the copy from the desktop? |
Jonathan Dawes (1547) 26 posts |
Hi, I have RISCOS and linux dual booting on my raspberry pi just fine, but currently I have to drag-and-drop copy the kernel,config.txt etc. for whichever OS I want to reboot into from a storage folder to the root of the PiBoot (speudo) partition. All I wanted to do was to automate this in a script so my son could run it with a quick mouse click, to get from RISCOS to booting linux (to run Minecraft-pi). this way I can leave the Pi setup to boot RISCOS, and he can switch to Linux when needed. I want to copy the contents of $.Wheezey to $ overwriting any identically named files in the process. I can do this in the filer, no problem at all, and it works fine. But with Copy, even if I use full pathnames it doesn’t like the source being a wildcard I think RiscOS (which I’m still familiarizing myself with) is amazing, so I can’t believe that it can’t handle moving an arbitrary number of files from one specified directory to another specified directory… BTW info $.Wheezey.* in fact gives me a list of the files inside the directory $.Wheezey, so I’m not sure why you suggest that… Does no-one do this sort of stuff any more? What do they use for scripting file moves etc? Thanks for responding! |
Rick Murray (539) 13840 posts |
Given that most applications are self contained (upgrades typically mean drag-dropping the new on top of the old), and user files can easily be moved in the Filer (within the Desktop), I think the simple answer is . . . they don’t. While I have used |
Rick Murray (539) 13840 posts |
Okay. I accept that my previous answer was rubbish, and a little niggling feeling in the back of my mind annoyed me as I carefully brewed a teabag in a mug. That’s a bad thing, tea is restful.
RISC OS will interpret that literally – as in attempt to copy each of the files, one by one, as $. This, it cannot do. To make the copy work, you should:
The There. Hope that’s more useful! (^_^) |
Chris Hall (132) 3554 posts |
In RISC OS it is easy to copy the Wheezey files into the root so that the next boot will be Linux. I am sure a Linux expert will tell you how to copy the RISC OS files into the root so that the next boot will be RISC OS. Having already got an SD card which dual boots into RISC OS or into Linux The only file that you need to change is the file ‘config.txt’ which tells the system where the operating system image file resides. Under RISC OS therefore, all you need to do is to have two files in the FAT partition on the SDcard, SDFS::0.$.!Boot.Loader, called ‘CONFIGLX.TXT’ and ‘CONFIGRO.TXT’. Under RISC OS just issue the command:
and the next boot will be into Linux. I have used the full canonical form of the pathname for the file to avoid ambiguity. Note RISC OS’ use of dot and slash. The file ‘CONFIGLX.TXT’ will simply contain something like (the lines starting with a hash, i.e. all of them, can be omitted): # uncomment if you get no picture on HDMI for a default “safe” modeand the file ‘CONFIGRO.TXT’ something like:
The important difference is the line ‘kernel=’ which tells the Pi that the operating system is in ‘RISCOS.IMG’ and not the default ‘KERNEL.IMG’, both of which will be present on your dual-booting card. |
Jonathan Dawes (1547) 26 posts |
Rick, ah, thanks. I didn’t realize you need the destination to also be .* That works for me, and thanks for the extra flags, which I would never have worked out! Chris, that’s a good point, and will make things much easier (and take a little less disk space) Thanks for your help guys! |