mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-28 18:05:31 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8191 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			23 lines
		
	
	
		
			412 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			412 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env perl
 | |
| # IBM(c) 2010 EPL license http://www.eclipse.org/legal/epl-v10.html
 | |
| use strict;
 | |
| use locale;
 | |
| BEGIN
 | |
| {
 | |
|   $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
 | |
| }
 | |
| 
 | |
| use Getopt::Std;
 | |
| use IPC::SysV qw(IPC_STAT S_IRWXU IPC_PRIVATE IPC_CREAT S_IRUSR S_IWUSR );
 | |
| use IPC::Msg;
 | |
| 
 | |
| my $rc=`$::XCATROOT/bin/lsxcatd -a 2>&1`;
 | |
| if ($?) {
 | |
|     print "$rc";
 | |
| } else {
 | |
|     print "xcatd is ok";
 | |
| }
 | |
| 
 | |
| exit 0;
 | |
| 
 |