Skip to content
Guest Big Announcement

I need help with the cp command

Featured Replies

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

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

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?

Sure

 

once I get back on my phone I'll give it to you

 

this topic is just for something I'm working on

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.