Epic stupid.. I forgot the `pwd` and trailing /, disregard this. Leaving the text up for a good laugh.
Maybe I'm just wicked tired, or I'm totally stupid. But I can't see where the problem is. I keep getting an unexpected operator at line 44, and if I remove said operator, I get another message. So here goes... halp?
Error before removing line 44:
Error after removing line 44:
Line 44 content:
Sript:
Thanks a ton for taking a look.
Believe it or not, the script works like a charm if the directory isn't found. If it is, however, this is the error I receive.
Last edited by KruesephiikZ`; 05-17-2010 at 12:36 AM..
you might also opt to make the whole thing easier on the machine's overhead by replacing each
with a quicker reference to
, better yet
when embedded in a string. This won't spawn a process to identify an already known value within your shell, thus reducing overhead.
Otherwise, if you prefer that the machine work for it's power, you could simply bump your inline functions up a notch and make them more legible by using $(...) instead of `...`. 99% of the time they're interchangeable...and much easier to spot in a crowd...
I have another question. I'm trying to pipe grep properly into wget, and that wouldn't be so hard.. if there wasn't a problem.
I'm trying to have the script look for the archive, got that down. But if the archive isn't found, I want it to connect to this website:
And download the file wine.lsm
I can do that. Then I want to:
I can do that. But here's the problem. When I try and
It doesn't work, because there's a large space at the beginning of the file, which wget interprets as a newline and thus fails by trying to connect to wine-1.whatever.tar.bz2 and not downloading the file. How can I fix that?
I'm not blessed with wget (or even curl) although I'd venture a guess that this is mostly a shell parsing issue at its root. I'd figure you'd want to remove the spaces, then you'd run into the fact that there's more than one such line...
Here's the contents of that file from your alternate site:
Two .bz2 files, each preceded with a longer whitespace segment. I'm not so familiar with wget, as I'd said, so I don't know if it would handle them as a glob/array, or as a single result (which might be where you're inferring a newline). Assuming it doesn't like globs, you'd have to devise a loop to handle multiple bogeys...and then you'd also need to eliminate that space at the beginning.
This would likely work to eliminate the extraneous spaces:
This kills the cat and leaves at least a few more cycles out of the overhead. But this now leaves you with the exercise of figuring out wget's preference on this result.
Hello everyone.
I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Hi,
Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result.
perl interpreter info,
perl, v5.8.8 built for... (0 Replies)
Hi all,
I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html
I've done... (0 Replies)