cancel
Showing results for 
Search instead for 
Did you mean: 

ccgi space

nadger
Rising Star
Posts: 4,498
Thanks: 46
Registered: ‎13-04-2007

Re: ccgi space

Yep - I purely upload to ccgi.username.plus.com in passive mode using Firefox (FireFTP) and it works just fine.
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: ccgi space

You could upload the following script to your cgi-bin directory and run it, It's best not to run that often though as it can take a while to run (depending on how many files you have of course).

#!/bin/bash
echo "Content-type: text/plain"
echo
cd ..
du -sk * | awk '{print $0;t+=$1}END{print t"\tTotal"}'
Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Re: ccgi space

Thanks Ben. How would I go about running it without Telnet access?
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: ccgi space

http://ccgi.username.plus.com/cgi-bin/scriptname
The result will be displayed in the browser
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Re: ccgi space

Thanks, I didn't realise a browser could be used to execute shell scripts like that. I got it running (once I made it executable and set unix-style LFs). I'm not quite sure how to interpret the results though - whether the figures are bytes, KB or whatever, they don't seem to correspond to those reported by my FTP client.
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: ccgi space

If you change -sk to -sh, that should add units.
edit:  Crazy
but scuppers the total. To see units and a valid total, the last line would be
du -h --max-depth=1

Gabe
Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Re: ccgi space

Yep, that's reporting units now, thanks. It looks like it counts subdirectories twice (i.e. a parent's size seems to be the size of its files plus the size of its child folders) so the total is misleading, but I can live with that.
community
Grafter
Posts: 666
Registered: ‎31-07-2007

Re: ccgi space

Quote from: Bob
They were checked jelv and due to their negligible size I'd be surprised anyway if they brought the total up to 250MB+
So Bob and Chris, I am still waiting for an intelligble reply from Plusnet staff about my usage...got any info?