•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 425,916 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,769 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 5823 | Replies: 0
![]() |
Hi there,
I have a script in my intranet to which I have 100% rights to run through browser using exec(); passthru(); system(); etc with php.
Now we use this to make automated backups per user database of certain systems connected. Very simple for the end-user after done working and very complex for the managers to process. So I rather not explain.
It comes down to a control panel page where certain things can be performed, including running this script for a personal copy, system backup and extra backup for company archive.
The dumps are quite big in some situations and the system resources can handle the stress and load easy to also gzip the results.
But how do I gzip the result properly using a .php script that runs a .sh or perl file?
Please help me
I tried piping the command and stuff, but I resulted in 0byte files.
Hopefully someone has an example for me.
I have a script in my intranet to which I have 100% rights to run through browser using exec(); passthru(); system(); etc with php.
Now we use this to make automated backups per user database of certain systems connected. Very simple for the end-user after done working and very complex for the managers to process. So I rather not explain.
It comes down to a control panel page where certain things can be performed, including running this script for a personal copy, system backup and extra backup for company archive.
The dumps are quite big in some situations and the system resources can handle the stress and load easy to also gzip the results.
But how do I gzip the result properly using a .php script that runs a .sh or perl file?
Please help me

I tried piping the command and stuff, but I resulted in 0byte files.
Hopefully someone has an example for me.
:cheesy: a vBulletin fan community @ vBulletin.nl :cheesy:
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Sending email from a shell script (Shell Scripting)
- Problem with variables in Windows shell script (Windows NT / 2000 / XP / 2003)
- Using find in a bash shell script (Shell Scripting)
- Shell Script for Gnome 2.6 Print Manager. (Shell Scripting)
- How to su properly in a shell script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Next Thread: $paths


Linear Mode