Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Casper . Dik
Here's the situation. The software that I've mentioned contains several scripts to build itself. Those scripts are XPG4 compliant and they have '#!/bin/sh' as their first line. The scripts use some features that Solaris's /bin/sh does not grok. You could make the first line of the

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Josip Gracin
[EMAIL PROTECTED] wrote: You could make the first line of the scripts: #!/usr/bin/env sh That is what I thought. Shouldn't this become the law then? ;-) I mean, writing '#!/bin/sh' is obviously wrong if you intend your scripts to be run on a standards compliant OS. Although

Re: [osol-discuss] Re: Cannot play audio cd

2006-07-02 Thread Joerg Schilling
Artem Kachitchkine [EMAIL PROTECTED] wrote: And hopefully, it will work better than HAL and DBUS on Linux where the system is responsible for cdrecord problems. See e.g. this thread:

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Joerg Schilling
Stephen Lau [EMAIL PROTECTED] wrote: Josip: Compliant with what standard? To everybody else: please resist the urge. I know you so desperately want to reply, but in the interest of the US-based Sun engineers who don't want to come back from summer break with a mailbox-full of threads and

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Joerg Schilling
Josip Gracin [EMAIL PROTECTED] wrote: Stephen Lau wrote: Josip: Compliant with what standard? Here's the situation. The software that I've mentioned contains several scripts to build itself. Those scripts are XPG4 compliant and they have '#!/bin/sh' as their first line. The scripts

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Joerg Schilling
[EMAIL PROTECTED] wrote: You could make the first line of the scripts: #!/usr/bin/env sh and set $PATH to find the proper shell. This is not POSIX either and is opens a security hole in case that PATH is problematic. Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Erast Benson
Hello! I have several standard-compliant shell scripts. These scripts use '#!/bin/sh'. However, since /bin/sh on Solaris is not standard-compliant, these scripts fail. What is the proper way to write standard scripts in Solaris and make sure that those scripts can be run on other

[osol-discuss] Re: x86 suspend-to-ram/suspend-to-disk

2006-07-02 Thread Jarno Nevala
Is there any news on these two features on X86? Are they being worked on or we still have to wait a bit longer? this is indeed something I would like to know also. according to Laptop HCL, my nc6000 should be fine, but while browsing opensolaris.org, theres quite little information about the

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Josip Gracin
Joerg Schilling wrote: Josip Gracin [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: You could make the first line of the scripts: #!/usr/bin/env sh That is what I thought. Shouldn't this become the law then? ;-) I No, because it opens security issues. Can we conclude then that

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread I. Szczesniak
On 7/2/06, Josip Gracin [EMAIL PROTECTED] wrote: Joerg Schilling wrote: Josip Gracin [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: You could make the first line of the scripts: #!/usr/bin/env sh That is what I thought. Shouldn't this become the law then? ;-) I No, because it

[osol-discuss] Re: How to write portable scripts in Solaris?

2006-07-02 Thread Shawn Walker
Joerg Schilling wrote: Josip Gracin [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: You could make the first line of the scripts: #!/usr/bin/env sh That is what I thought. Shouldn't this become the law then? ;-) I No, because it opens security issues. Can we conclude

Re: [osol-discuss] How to write portable scripts in Solaris?

2006-07-02 Thread Hugh McIntyre
I. Szczesniak wrote: Yes, but Sun doesn't really care about interoperability. There may be a change in the future through the ksh93 integration project, but it is doubtful whether Sun will ever update /bin/ksh to ksh93. I don't work at Sun (any more), but it seems more accurate to say that

[osol-discuss] OpenSolaris Community Newsletter: June 2006

2006-07-02 Thread Jim Grisanzio
Here's the June issue of the OpenSolaris Community Newsletter: http://www.opensolaris.org/os/project/content/newsletter/june06/ Another fine month, I'd say. :) Only a day late (due to me, of course). I'll see you guys next at the end of July from Japan. Jim

[osol-discuss] DHCP

2006-07-02 Thread tyw
Just wanna check, is it possible to get the next IP address provided by DHCP server. This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

Re: [osol-discuss] DHCP

2006-07-02 Thread Paul Jakma
On Sun, 2 Jul 2006, tyw wrote: Just wanna check, is it possible to get the next IP address provided by DHCP server. Yes. See the 'auto-dhcp' (or 'dhcp' shortcut) option of ifconfig: ifconfig interface auto-dhcp regards, -- shell-init: error retrieving current directory: getcwd: cannot