From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 25 08:11:39 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E058106566C for ; Fri, 25 Feb 2011 08:11:39 +0000 (UTC) (envelope-from mahamuni.ashish@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EBCE98FC15 for ; Fri, 25 Feb 2011 08:11:38 +0000 (UTC) Received: by wyb32 with SMTP id 32so1609028wyb.13 for ; Fri, 25 Feb 2011 00:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=IcP5wP3YK3mplz0oK3eyk/ReV7y8GeZRUBf3FThbNtA=; b=Zs0momjj7Ne5TZzMK+nEkN6PLSlWrhT3SBQcVmqNBXo/CSWxKppHAbWG/6qicYX6N4 Znoz11fBRWr2B4JZjQPTvMxhDFK/6vLYYNeSPKrmlCgzWtEqD1ZUMCkDpJ1Z2XlUPbe8 wZ0jfCkejKJNvyixWwrZLXRkakCqTPFzsmogw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=n/btYRTfQcsvu++k1+MpZRSzGtO/qUp1kcKCY0cc5cKZ7ggemrs2vDOzd/OqStVmBr AsLQyJrQmR7kFhVQ054riarhVdXl8593Fb5BGFGjA+uCj0RrxeJ9eghrDplblHVRuz7+ lw4181p8ibGPbMWw6YaYZld2tyGpDfawXtoy8= MIME-Version: 1.0 Received: by 10.216.171.19 with SMTP id q19mr6782976wel.53.1298621497795; Fri, 25 Feb 2011 00:11:37 -0800 (PST) Received: by 10.216.254.82 with HTTP; Fri, 25 Feb 2011 00:11:36 -0800 (PST) Date: Fri, 25 Feb 2011 13:41:36 +0530 Message-ID: From: Ashish Mahamuni To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ssh terminal settings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 08:11:39 -0000 I am doing some automation stuff with freebsd. on my local machine I am using Net::SSH::Expect (perl library) to run commands on FreeBSD machine. The problem is when I execute commands on FreeBSD, I am not able to get the output of that command on my local machine. All I am getting is remote shell as a output. Same script work perfectly if I run it against linux target. my $ssh = Net::SSH::Expect->new ( host=>"172.18.28.104", user=>"root", password=> "root", timeout=>5, raw_pty=>1 ); $ssh->login(); my $out = $ssh->exec("ps -aux"); print $out; //Here I expect complete ps output, which is not working for FreeBSD. Is there any terminal setting that I have to do to achieve this? How does shell gets allocated when we start ssh session? --Ashish