Re: ssh remote command problem;
- From: rpnabar@xxxxxxxxx
- Date: Fri, 7 Dec 2007 13:39:56 -0800 (PST)
On Dec 7, 3:25 pm, rpna...@xxxxxxxxx wrote:
On Dec 7, 5:29 am, all mail refused <elvis-85...@xxxxxxxxxxxxxx>
wrote:
On 2007-12-07, rpna...@xxxxxxxxx <rpna...@xxxxxxxxx> wrote:
It wont work! U aliased scp on the home system!! That scp is never
invoked. I am scping from the REMOTE SYSTEM. The post_processor is on
HOME_SYSTEM. The post processor on home system needs to respond to an
scp command on remote-system.
What happened when you tried it?
What is the atime (ls -lu) on scp on the home system after a transfer?
Your problems include not knowing the details of scp and not listening
to advice.
--
Elvis Notargiacomo master AT barefaced DOT cheekhttp://www.notatla.org.uk/goen/
I apologise! I was guilty of what you said. Justuified. Your
sugesstion works PERFECTLY! Thanks! I was ignorant about how scp
works I guess! Need to read more.
Maybe you have an advice on this related issue though:
I did the fix as a normal user. So did NOT touch the /usr/bin/scp as
root. (we have many other users so I prefer not to mess with my root
privilages) I aliased my scp to ~/bin/scp in which I stuffed the shell
script you recommended.
THat one invokes the ~/bin/run_post_processor which does the
postprocessing. Works like clockwork.
But it seems to get invked on outgoing scp calls as well.(obviously!)
Is there any way to test/prevent that?
Thanks again and I apologise for the hasty assumtions earlier!- Hide quoted text -
- Show quoted text -
I found one option; looks very like a hack actually. So I'm still
looking for more sugesstions!
If in my scp I do a dump of exported variables I see one of the type:
declare -x SSH_CLIENT="140.xx.xx.xx 39734 22"
I'm not sure how reliable this one is but maybe I can check for my
host system IP and then make a decision about wheter it was an
incoming or outgoing scp call!
.
- Follow-Ups:
- Re: ssh remote command problem;
- From: rpnabar
- Re: ssh remote command problem;
- References:
- ssh remote command problem;
- From: rpnabar
- Re: ssh remote command problem;
- From: Unruh
- Re: ssh remote command problem;
- From: rpnabar
- Re: ssh remote command problem;
- From: rpnabar
- ssh remote command problem;
- Prev by Date: Re: ssh remote command problem;
- Next by Date: Re: ssh remote command problem;
- Previous by thread: Re: ssh remote command problem;
- Next by thread: Re: ssh remote command problem;
- Index(es):
Relevant Pages
|
|