- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script help
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
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
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
тАО12-08-2009 11:23 AM
тАО12-08-2009 11:23 AM
I'm trying to use this script for password expiry. But i dont understand how to compile or this is one c prog and a script?
Anyone explain how to compile this? It says time.c, user_expire.sh etc, but i didnt see that? any help please.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 12:03 PM
тАО12-08-2009 12:03 PM
SolutionBest I can tell the time.c source got 'eaten' by the html formatter but should have looked like:
---------------------------
#include
#include
main(){
printf ("%d\n",time(0));
}
----------------------------
No more, no less.
Enjoy,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 12:43 PM
тАО12-08-2009 12:43 PM
Re: script help
I'm getting syntax error. Is "set -u " is the starting point of the script??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:06 PM
тАО12-08-2009 01:06 PM
Re: script help
However, you really should add a first line of:
#!/usr/bin/sh
to the script so that it will use the POSIX shell as its interpreter.
If modify the line so that it is:
#!/usr/bin/sh -x
The you will get debug messages which should help you in troubleshooting the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:10 PM
тАО12-08-2009 01:10 PM
Re: script help
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1260305900722+28353475&threadId=1033725
Thanks to Joseph C. Denman.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:14 PM
тАО12-08-2009 01:14 PM
Re: script help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 11:23 PM
тАО12-08-2009 11:23 PM
Re: script help
Better to look like: :-)
#include
#include
int main(){
printf("%ld\n", time(NULL));
return 0;
}