Creating dummy files on servers
Hey dudes, i'll make this short and simple, my host gives me "unlimited bandwidth and diskspace" but i know they can't give me unlimited diskspace, a php file on my server tells me i have 55gb left which is too small, i have a program on my pc that creates a dummy file of any size i want and i'm wondering if there's a way to do this directly from my server (i have all programming languages supported that apache can handle, i also have shell access). I hope i've given enough info, thanks in advance,
regards,
T3Roar
pmj7 posted this at 19:41 — 23rd April 2005.
He has: 234 posts
Joined: Nov 2002
55,000,000,000 bytes is too small? For what? Backing up the entire Internet?
If you truly need more than 55GB, I suggest you contact your service.
Peter
Touchup image processing applet
Pixel Development Web Design, Photography
t3roar posted this at 23:22 — 23rd April 2005.
He has: 9 posts
Joined: Apr 2005
Well when you count it in bytes it sounds much more like it is, i need more because i want to use it for my friends to store some stuff on there and we can share em, we've started a videography project for college and the files are HUGE, it doesn't really matter why anyway...some of my video files are like 2-5 sometimes 7 or 8 gb and they're not even more than an hour (we use really high resolution)...
i just need to find a way to generate big files on the server...this seems like a good way, if it's not possible, anything that makes files by itself i'd like to hear about it...
thanks guys,
T3Roar
t3roar posted this at 23:23 — 23rd April 2005.
He has: 9 posts
Joined: Apr 2005
And 55gb is actually: 59,055,800,320 bytes
t3roar posted this at 23:27 — 23rd April 2005.
He has: 9 posts
Joined: Apr 2005
Also if there's a way to unzip or unrar files on servers i can do that too since a 50mb dummy file only takes 5kb in a zip
Abhishek Reddy posted this at 23:55 — 23rd April 2005.
He has: 3,348 posts
Joined: Jul 2001
If you have shell access (assuming it's a POSIX-type server), run the command `unzip`, to test if it is on your server. If it returns sensible help information, it's there, but if it returns something about command not found, it's not there. Read the help message to see how to use it, if it exists.
t3roar posted this at 02:07 — 24th April 2005.
He has: 9 posts
Joined: Apr 2005
Hey dude, tried it and it was a little confusing at first but i worked it out and it's working all great, i stored a 3gig file in about 1mb so i just keep extracting, will carry on tomorrow...thanks man...
for those who want to do the same, here's what should be done in telnet/shell access:
type unzip and see if some long big thing comes up, if it doesn't you can't use this method, if it does:
unzip /source_dir1/source_dir2/file.zip -d /target_dir1/targetdir2/
thanks,
T3Roar
pmj7 posted this at 02:07 — 24th April 2005.
He has: 234 posts
Joined: Nov 2002
All of this is a moot point if all of your ISPs don't have a huge upload allowance. Plus, I hope you guys have very fast Internet connections. Have you calculated how long it will take up to upload a 8GB file?
Peter
Touchup image processing applet
Pixel Development Web Design, Photography
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.