[staf-users] Logging $STAF::Result

2010-01-12 Thread Uma Maheswar Chilukuri
Hi, Is it possible to log $STAF::Result directly to log file with unmarshalling and marshalling the log message later through a perl script? E.g: After a submit request STAF::Log::Log("WARNING", " $STAF::Result"); Thanks Uma. ---

[staf-users] Logging to a sub directory of root log directory

2010-01-12 Thread Uma Maheswar Chilukuri
Hi, I'm trying to log into subdirectory of root log directory using Perl script with API STAF::Log::Init() and STAF::Log::Log() with GLOBAL log file. It is creating the log file in subfolder. When I try to read the log file with QUERY request it is giving the error 48. [:~/SRC/STAF/re

[staf-users] Executing aliases using PROCESS service

2010-01-13 Thread Uma Maheswar Chilukuri
Hi, How to execute an alias mentioned in remote machine(solaris) profile from a linux box using PROCESS (or any other) serivce? When I tried to execute getting the following error. Note that "aliascommand" executes successfully on remte machine independently. [test:~/perl]$STAF

Re: [staf-users] Executing aliases using PROCESS service

2010-01-14 Thread Uma Maheswar Chilukuri
ELL COMMAND "history" returnstdout stderrtostdout wait [mdstest:~]$ Thanks Uma. -----Original Message- From: Nathan Parrish [mailto:nparr...@clustrix.com] Sent: Thursday, January 14, 2010 1:45 AM To: Uma Maheswar Chilukuri Cc: staf-users@lists.sourceforge.net Subject: Re: [staf

[staf-users] Executing aliases using PROCESS service

2010-01-14 Thread Uma Maheswar Chilukuri
Hi David, This is in response to your suggested solution. Part of this below mail is sent to mail list for another response. Results of your suggested solutions are at end of the mail. "history" is aliased to 'fc -l' as you can see below. [test:~]$alias alias hist

[staf-users] Registering E-mail service - Java Problem

2010-01-17 Thread Uma Maheswar Chilukuri
Hi, I configured Email service in *.cfg file below line. service email library JSTAF EXECUTE /export/home//staf/email/STAFEmail.jar PARMS "MAILSERVER .xx.xxx.com" When started the STAFProc getting the error 27:Error constructing service, JSTAF, Result: Unab

[staf-users] Event when a child process exits

2010-01-24 Thread Uma Maheswar Chilukuri
Hi, How to determine a process(child process) which is started by STAF with PROCESS service is exited by the parent process? One way might be by using QUEUE service and checking for "STAF/Process/End" type messages. This requires a looping. Is there any other way which is similar to getting eve

[staf-users] PROCESS service output to file

2010-02-25 Thread Uma Maheswar Chilukuri
Hi, Is there a way to get the output of a shell request in a file on the system where request has been issued instead of creating a file on system where shell command is executed. STAF PROCESS START SHELL COMMAND "ls -l " STDOUT returnstdout stderrtostdout wait Above command creates

Re: [staf-users] PROCESS service output to file

2010-02-25 Thread Uma Maheswar Chilukuri
e system. Thanks Uma. From: Sai Ram Purandhar-B22305 [mailto:b22...@freescale.com] Sent: Friday, February 26, 2010 12:53 PM To: Uma Maheswar Chilukuri; staf-users@lists.sourceforge.net Subject: RE: [staf-users] PROCESS service output to file Hi Mahesh, Using STAX, you ca

[staf-users] Process with different id

2010-03-01 Thread Uma Maheswar Chilukuri
Hi, I'm trying to run a process with different user specifying in STAF request. /staf/bin> STAF local PROCESS LIST SETTINGS Response Default Stop Using Method : SigKillAll Default Console Mode: New Default Focus : Background Process Auth Mode

[staf-users] Persisten Shell Session through PROCESS service

2010-03-22 Thread Uma Maheswar Chilukuri
Hi, >From STAF User guide for PROCESS service. 8.12.2 "SHELL specifies that COMMAND should be started via a separate shell." >From this I know that each request to PROCESS service is executed in a >separate/New shell. Is there a way to have a shell session persisted fo

Re: [staf-users] Persisten Shell Session through PROCESS service

2010-04-01 Thread Uma Maheswar Chilukuri
.com] Sent: Mon 3/22/2010 7:49 PM To: Uma Maheswar Chilukuri Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Persisten Shell Session through PROCESS service No, that is not possible. If you need to have multiple requests execute in the same shell, then you could create a shell