View Single Post
  #17  
Old 11th February 2010, 22:30
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Wink

Quote:
Originally Posted by jmp51483 View Post
Hey thanks for the response!

I was more a bit worried about this part

./back-res: line 238: [: -gt: unary operator expected

Line 238 has to do with:

if [ "$pfs" -gt "$maxp" ] ;then

Is this rendering the space check inoperable??

Thanks for this script though, it's amazing!
It's possible to render the space check inoperable. I'm not sure why you get this message. This error happens only if one of the $pfs or $maxp is inexistent, is not a number, or is a decimal number (ex: 10.5)

I've tested this script on Ubuntu 9.04 and 9.10 and more versions of Slackware (10.2 up to 13.0) and it's working as expected, no errors.
If you can read this: http://gd.tuwien.ac.at/linuxcommand.org/wss0100.php and use "set" to see where the error is, post it here and I'll try to make the script better if I can.

Thank you for using this script and for providing feedback.

Edit: Can you please tell me what linux are you using? This will help me I hope to make the script better and more portable.

Last edited by go0ogl3; 11th February 2010 at 22:44. Reason: Forgot something
Reply With Quote