× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Sat, Aug 23, 2008 at 9:57 PM, Steve Richter <stephenrichter@xxxxxxxxx> wrote:
just toying with using perl at the VIOS console command line. I can
enter "#!/usr/bin/perl", but then I see that # is a comment marker.

That's the Shebang. http://en.wikipedia.org/wiki/Shebang_(Unix)

It's used to tell the kernel which script interpreter to use, and only
works in scripts.

Anything that follows # is accepted. print "hello, world!\ runs ok,
but variable assignments like $n = '3 apples' dont. I run

Well, the shell is also programmable. Shell scripts are very similar
to CL, except less readable.

Variable assignment in shell is foo='bar' (standard quoting rules
apply - you can use ", ' or no quoting, depending on the string).

/usr/bin/perl from the command line. Get the complaint that operation
is not allowed in a restricted shell. ( was at the $ prompt ). I
hope it actually works. Would like to try using perl to automate some
VIOS admin tasks.

Use oem_setup_env to get a unrestricted shell.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.