- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: As a coding sample or for support staffs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2012 04:48 AM - last edited on 04-03-2017 09:17 PM by VidyaVI
07-29-2012 04:48 AM - last edited on 04-03-2017 09:17 PM by VidyaVI
Dear everyone,
Here is a coding sample using getpwnam, glob, chown C calls which has been tested under both Linux Fedora 17 and OpenVMS IA64 V8.3-1H1.
Executed as is, the program in the URL below is purely useless. It only serves the purpose on how to use the getpwnam, glob and chown or for support staffs willing a ready to use program to troubleshoot these C calls. You will find all details at:
http://vouters.dyndns.org/tima/Linux-OpenVMS-C-Implementing_chown.html
You will find all details at http://vouters.dyndns.org/tima/Linux-OpenVMS-C-Implementing_chown.html
In the hope this can help you in your daily work.
Regards,
Philippe
Solved! Go to Solution.
- Tags:
- getpwnam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2012 11:56 AM - last edited on 04-03-2017 09:18 PM by VidyaVI
08-01-2012 11:56 AM - last edited on 04-03-2017 09:18 PM by VidyaVI
Re: As a coding sample or for support staffs
Dear everyone,
The same functionality using the Java language :
http://vouters.dyndns.org/tima/Linux-OpenVMS-Java-Implementing_chown_in_Java.html
This code sample serves the same purposes as its C counterpart.
It works on both Linux Fedora 17 and OpenVMS IA64 V8.3-1H1. It uses Java/JNA to interface the getpwnam, chown and perror C calls. Because it uses JNA which can't be built using Java 1.5, this code only runs on OpenVMS Integrity servers.
Wish you fun with.
Yours truly,
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2012 04:48 AM
08-26-2012 04:48 AM
SolutionI just added the Windows environment to my Chown.java. Now both the the C and Java code indifferently run on Windows/OpenVMS/Linux. There two differences between the two codes. One is that the C version handles symlinks and fully dereferences them whereas the Java code is unable to (File class not designed for). The other is that the Java code indifferently accepts a Unix/OpenVMS/Windows input file syntax indifferently on Linux/OpenVMS/Windows.
Wish you fun with both codes.
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2012 08:18 AM - last edited on 04-03-2017 09:20 PM by VidyaVI
11-10-2012 08:18 AM - last edited on 04-03-2017 09:20 PM by VidyaVI
Re: As a coding sample or for support staffs
As a quick personal exercise, here is the equivalent in Perl of the C program. You will find the Perl code at http://vouters.dyndns.org/tima/Linux-Windows-Cygwin-Perl-Implementing_chown_in_Perl.html
Perl/VMS as shipped by HP being fairly old and not supporting symlinks, the code in URL above is totally unrunnable on OpenVMS using HP's provided software.
In the hope this work can interest someone.
Philippe
- Tags:
- Perl