Operating System - HP-UX
1752618 Members
4443 Online
108788 Solutions
New Discussion юеВ

shell script compiler (shc-2.4a)

 
tom quach_1
Super Advisor

shell script compiler (shc-2.4a)

Dear all,

I'm looking for a version of SHC that works with hpux 11.31.

went to "the Porting And Archive Centre for HP-UX" and they still have the old version for Pa-Risc since 1999.
if anyone knows of a new version of
shell script compiler (shc-2.4a) for hpux 11.31 (itanium)or any software that replaces this one.
Please let me know.

Thanks in advance!
Regards,
Tom
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: shell script compiler (shc-2.4a)

Hi Tom:

If you really want this, I'd download the source and compile it yourself.

I'd be interested to know what/why you want to hide the contents of shell scripts. If you have "sensitive" information (passwords?) therein, there are certainly better (alternative) methods to address your need other than the old security-through-obscurity doctrine.

Regards!

...JRF...
tom quach_1
Super Advisor

Re: shell script compiler (shc-2.4a)

Hi James,

Would you point me to some (alternative) methods to address my need,
this is the only method that i know of.
Regards,
Tom
OldSchool
Honored Contributor

Re: shell script compiler (shc-2.4a)

a discription of what you are trying to accomplish would be useful, as opposed to "this is how I want to do it".

Is it simply hiding passwords, or ???
James R. Ferguson
Acclaimed Contributor

Re: shell script compiler (shc-2.4a)

Hi (again) Tom:

> Would you point me to some (alternative) methods to address my need,

What are you trying to hide? If it is a password in an FTP shell script, use the '.netrc. mechanism or better yet, use SFTP.

Please provide some details.

Regards!

...JRF...
tom quach_1
Super Advisor

Re: shell script compiler (shc-2.4a)

Sorry,

we have many scripts run on cognos and oracle database and do not want programmers to know the contents and or passwords. in hp-ux 11.11 we use "shc" and it works well,now we migrate to hpux 11.31 itanium .
just want to do the same but found out that they do not have a version for itanium.
Please advise.
Regards,
Tom
James R. Ferguson
Acclaimed Contributor

Re: shell script compiler (shc-2.4a)

Hi (again) Tom:

As I first said, I would download the source code from the Porting Center and compile it if you want to continue to use this.

Regards!

...JRF...
tom quach_1
Super Advisor

Re: shell script compiler (shc-2.4a)

hi James,

would you provide the syntax to compile the shc to work on itanium.

Regards,
Tom
James R. Ferguson
Acclaimed Contributor

Re: shell script compiler (shc-2.4a)

Hi Tom:

You should be able to download the source into a temporary directory (e.g. '/tmp'). Uncompress the archive ('gzip -d') and untar the tarball.

Then 'cd' into the directory (e.g. '/tmp/shc-2.4a') and simply type 'make'.

I don't have an Itanium but this should get you started.

Regards!

...JRF...