Home About BC DR HA Support Training Download
You are here: Home/ Downloads/ C-Code/ Please Login or Register

-
Current Location
-

js
  Downloads
    C-Code
-
AIX Admin Methodology
Global Consolidation Project
All AIX admins should join
www.aixexpert.com


Join our LinkedIn Group
AIX Advanced Technical Experts
Contract Opportunities

www.LinkedIn.com

-
digg Digg this page
del.icio.us Post to del.icio.us
Slashdot Slashdot it!


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com

wlmsettag.c C-Language Source Code

#include 
#include 
#include 
#include 
/* ################################################################ */
/* Program for launching and tagging an application */
main (argc,argv)
  char **argv;
  int argc;
{
  int rc,flags;

  if (argc != 3) {
    usage(argv[0]);
    exit(1);
  }

  flags= WLM_VERSION|SWLMTAGINHERITFORK|SWLMTAGINHERITEXEC;

  if(wlm_initialize(WLM_VERSION)){
    perror("wlm_initialize");
    exit(1);
  }

  if(wlm_set_tag(argv[1],&flags)){
    perror("wlm_set_tag");
    exit(2);
  }

  if (execlp(argv[2],argv[2],0)){
    perror("execlp"); printf("Problem launching app...\n");
    exit(3);
  }
  exit(0);
}
/* ################################################################ */
usage(char *cp)
{
  printf("\n %s takes 2 arguments:\n",cp);
  printf("Usage: %s tag_name program_name \n",cp);
  printf("where: tag_name is the rule tag that program_name will inherit \
  \n");
}

-
Set WLM tag
-
 

HTML2tex
Set AIX Priority
Set Linux Priority
Set AIX Password
Set WLM tag


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com