xboxscene.org forums

Author Topic: Alittle Script Help  (Read 43 times)

jcupp114

  • Archived User
  • Full Member
  • *
  • Posts: 237
Alittle Script Help
« on: September 15, 2005, 02:42:00 PM »

Im scripting a copy function within the initrd file however,
when the copy process starts copying the files it seems anything thats in the folders within C:\...\(here) do not get copied. There just omitted!

Im using cp /mnt/C/* /mnt/E/backup/C_drive/OEMC/

Is there anyone that could help me with the code and if I have to copy all over from individual codes the one that stumps me is the:
cp /mnt/C/xboxdashdata.1012a700 whereas the ...1012a700 is not the same for all xboxes.

If anyone can help me please.... Take care
Jcupp114
Logged

Keo-Keo

  • Archived User
  • Sr. Member
  • *
  • Posts: 477
Alittle Script Help
« Reply #1 on: September 15, 2005, 10:37:00 PM »

CODE

cd /mnt/C/; $SOURCE=`ls | grep xboxdashdata.`; EXPORT $SOURCE; cp -Rf $SOURCE  /mnt/E/backup/C_drive/OEMC/


That might not be correct but it's the only thing i can think of at 12 42am ;-) without testing.. I might have used the ;'s wrong and the ` ` wrong.. Bascially everything in the ` ` i wanted process 1st then that value of process givin to $SOURCE then EXPORTED..
Logged