Logging in and running an update file from command

I am trying to upgrade many installations of a gallery script called coppermine through the commandline.

I've copied the latest files of the script to each account.

Then, I need to run a file gallery/update.php
which requires I log in

I can create an admin user for myself for each database through the command line

But I don't know how to log in and run a file

How can I do that through the command line?

Like execute a website file like somedomain.com
which requires a username/password to run?

Thanks!

What you can do is to use Firefox's Live HTTP Headers to capture a typical user login session. With that, you can loop through all users using curl or wget to simulate login

1 Like

i need to automate this for hundreds of installations on a server

not sure how you would use Firefox's Live HTTP Headers for that