Another thought - have you checked the group of the redback user, maybe it is a permissions thing , i presume uname gathers its info from /sys and there may be some restriction somewhere.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tony Gravagno Sent: 05 August 2011 02:36 To: [email protected] Subject: Re: [U2] AIX uname and Redback To my knowledge Redback itself isn't being asked for anything. A BASIC sub was executed and returned the short result - I believe this does what you're suggesting. That sub also kicks off a phantom with the same results. Code is below. FYI, I don't use Redback myself so please forgive any misunderstanding of something that you're trying to convey. I'll pass along new suggestions to the client. Thanks for the note. More suggetions welcome. T > From: Gregor Scott > Have you confirmed if it is a reporting problem or a > data capture problem? I.e. is that the "uname -Fa" is > still producing the full output, but the RedBack > environment does not return the entire result? You > could try "uname -Fa|tee /tmp/uname.redback.$$" to > capture what is being output and compare it to the > result RedBack is reporting. SUBROUTINE UNAME.TEST(OUT) OPEN '','VOC' TO FVOC ELSE RETURN * Execute uname writing to /tmp EXECUTE "SH -c 'uname -Fa >> /tmp/uname.txt'" CMD = \SH -c "su redback redadmin | uname -Fa\ CMD := \ >> /tmp/uname.redback.txt"\ EXECUTE CMD * Execute phantom processing uname EXECUTE 'PHANTOM RUN BP UNAME.PHANTOM' ; * code below * Execute uname capturing results EXECUTE \SH -c "uname -Fa 2>/dev/null"\ CAPTURING OUT OUT<-1>="@LOGNAME = ":@LOGNAME OUT<-1>="@WHO = ":@WHO OUT<-1>="@PATH = ":@PATH OUT<-1>="@ACCOUNT = ":@ACCOUNT OUT<-1>="@AUTHORIZATION = ":@AUTHORIZATION WRITELIST OUT ON 'UNAME.OUT' * Get current environment variables EXECUTE \SH -c "whoami 2>/dev/null"\CAPTURING WHOAMI WRITELIST WHOAMI ON 'WHOAMI' EXECUTE \SH -c "env 2>/dev/null"\CAPTURING ENV WRITELIST ENV ON 'ENV' RETURN END UNAME.PHANTOM: OUT = '' OPEN 'VOC' TO FVOC ELSE STOP EXECUTE "SH -c 'uname -Fa >> /tmp/uname.ph.txt'" EXECUTE \SH -c "uname -Fa 2>/dev/null"\ CAPTURING OUT WRITE OUT ON FVOC,'PHANTOM.OUT' END _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1390 / Virus Database: 1518/3810 - Release Date: 08/04/11 _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
