Hi Matt, I tried the following:
#read testvar /dev/tty abcdefg #echo $testvar abcdefg I am getting shell (/bin/sh) through telnet on ethernet interface ip. My main goal is to run scp but as scp usages dbclient, its also getting failed. Best Regards Pratik On Tue, Aug 12, 2014 at 7:23 PM, Matt Johnston <[email protected]> wrote: > On Tue, Aug 12, 2014 at 07:19:45PM +0530, pratik singh wrote: > > Hi Matt, > > > > Thanks for your valuable suggestion. > > Unfortunately my system doesn't have "strace" utility support. I tried > > dbclient with "-y" option but again its failing again with "write > > error:broken pipe". > > Hi Pratik, > > It seems like ttys are broken somehow. Could you try the following: > > At a prompt: > read testvar < /dev/tty > somethinghere (then press enter) > > echo $testvar > > It should print "somethinghere". > > How are you getting a shell on the system - Dropbear or > serial console or something else? > > Cheers, > Matt > -- Thanks & Regards Pratik Singh
