Hi Nathan, "history" is aliased to 'fc -l' as you can see below.
[test:~]$alias alias history='fc -l' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias perl='/usr/bin/perl5.8.5' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' Here if "history" is executed with STAF it doesn't return anything. (Please note that this is not executed on remote machine for which this thread has been started) [test:~]$STAF local PROCESS START SHELL COMMAND "history" returnstdout stderrtostdout wait Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : } ] } Executing "history" without staf returns results. [test:~]$history 1049 cd 1050 whoami 1051 ls 1052 ls 1053 ls 1054 ls 1055 history 1056 ls 1057 ls 1058 sl 1059 ls 1060 ls 1061 history 1062 alias 1063 STAF local process start shell returnstdout wait command alias 1064 alias 1065 STAF local PROCESS START SHELL 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-users] Executing aliases using PROCESS service are you sure that the alias 'aliascommand' has been defined in the .profile/.bashrc/etc which is read when STAFProc on your remote machine fires up a shell? I would think that the following should be able to tell you whether you have any aliases defined in that context: staf remotemachine process start shell returnstdout wait command alias on my machines I see nothing, and I don't believe I define aliases in any system-level init script, i.e. /etc/bashrc, /etc/profile. hth, nathan ----- "Uma Maheswar Chilukuri" <u...@mach.com> wrote: > Executing aliases using PROCESS service > > > > Hi, > > Ho w to execute an alias mentioned in remote machine (solaris) profile > from a linux bo x using PROCESS (or any other) serivce ? > > When I tried to execute getting the following error. Note that “ > aliascommand ” executes succe ssfully on remte machine independently. > > > > > > [test:~/perl]$STAF remotemachine PROCESS START SHELL COMMAND " > aliascommand " returnstdout stderrtostdout wait > > Response > > -------- > > { > > Return Code: 1 > > Key : <None> > > Files : [ > > { > > Return Code: 0 > > Data : sh: aliascommand : not found > > } > > ] > > } > > > > Thanks > > Uma. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > staf-users mailing list > staf-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/staf-users ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users