Jump to content

I need help with the cp command


9 posts in this topic

Recommended Posts

Posted

I'm trying to copy the app image from its folder to /var/mobile so I know that the code works and then I can go from there.

 

I'm getting the stupidest f**king errors when its such a simple f**king command, cp, copy something from one damn place to another place, and thats pissing me off the most.

 

Here's the code: system("cp `$path/*/$appfolder` '/var/mobile'");

 

$path is /var/mobile/Containers/Bundle/Application

The wildcard is for the crazy app names

$appfolder is what the user puts in for the app folder's name

 

The first argument has to be in `'s or else the stupid phone treats it as a string where the * is literally a *.

 

The error I'm getting is: cp: missing destination file operand after '/var/mobile'

 

Please help, I've been at this for almost 4 hours and I want to punch a whole in the wall

Posted

system() does not parse $path or $appFolder...

 

any other suggestions then? This is in Perl and I already tried copy and it won't work with wildcards

Posted

bash script? Use system() to run that bash script.

 

Alright. I'm making a nic template that auto fills in your offsets and keys and features and many other things, you want it?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines