<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Using Centos release 4.7, filepro 5.0.14.R4<br>
<br>
I log in as a simple user (ID 510, Group 100) , execute a menu to
connect to a remote site, produce a file and scp it back. <br>
The authorized_keys are set between the two systems.<br>
<br>
The problem is when I do the exec of the menu from within the .bashrc
file the scp doesn't function.<br>
But if I login and get a $ sign and then type my menu command ( ie&nbsp; p
glmas ) then the scp does work.<br>
<br>
When you get the $ sign and type&nbsp; p glmas&nbsp; scp transfers the file<br>
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 444&nbsp; 3406&nbsp; 0 10:31 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 sshd: gltrans [priv]<br>
gltrans&nbsp;&nbsp;&nbsp; 466&nbsp;&nbsp; 444&nbsp; 0 10:31 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 sshd: gltrans@pts/0<br>
<b>gltrans&nbsp;&nbsp;&nbsp; 469&nbsp;&nbsp; 466&nbsp; 0 10:31 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 -bash</b><br>
gltrans&nbsp;&nbsp;&nbsp; 550&nbsp;&nbsp; 469&nbsp; 0 10:34 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 /u/appl/fp/runmenu glmas<br>
<br>
When it automatically loads the menu, the scp doesn't work<br>
<br>
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 653&nbsp; 3406&nbsp; 0 10:45 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 sshd: gltrans [priv]<br>
gltrans&nbsp;&nbsp;&nbsp; 689&nbsp;&nbsp; 653&nbsp; 0 10:45 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 sshd: gltrans@pts/8<br>
gltrans&nbsp;&nbsp;&nbsp; 690&nbsp;&nbsp; 689&nbsp; 0 10:45 pts/8&nbsp;&nbsp;&nbsp; 00:00:00 /u/appl/fp/runmenu glmas<br>
<br>
Any idea what effect the -bash has on all this ?<br>
<br>
<br>
<pre class="moz-signature" cols="72">

Ed Hilovsky
LGF Computers

Main Office: (724) 463-7633
Toll Free  : (800) 653-8479
Fax Number : (866) 448-5415
Cellular   : (412) 289-1773

email  <a class="moz-txt-link-abbreviated" href="mailto:lgf@lgfcomputers.net">lgf@lgfcomputers.net</a>
</pre>
</body>
</html>