General :: Capturing Remote Output Locally In Mac Terminal?

Jun 2, 2011

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).

Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Capturing ALL Output From Terminal To File?

Apr 17, 2010

I would like to capture all output spewed to a terminal session including processes that are terminated that were invoked from a script running in a terminal window. this is beyond capturing just stderr and stdout . for example

{
./script
} 2> stderr.cap 1>stdout.cap

if script is terminated (including because of memory violations) I get spewed output to the terminal I would like to capture that spewing to a file automatically or to a bit bucket /dev/null Is there another filehandle which can be redirected to do this? If so how or is there another way???

View 3 Replies View Related

General :: Capturing Output Of Command In Vim Editor?

Sep 28, 2010

I have a file which contains a table

row1 ✔ no ✔ no
row2 no ✔ ✔ no
... so on

I want to prefix the number of ✔ to corresponding row If I use the command :.s/✔//gn I get output written like '2 matches on 1 line' How can I extract the '2 matches' in above case ?

View 11 Replies View Related

General :: Remotely Run Script On Unix, Get Output Locally?

Apr 13, 2010

I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.

View 4 Replies View Related

General :: Mount Remote Devices Locally?

Jan 22, 2011

I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?

View 1 Replies View Related

Software :: Capturing SCP Output With PHP?

Jul 20, 2011

I've made a simple php wrapper around scp. It works fine, but unlike when I run the scp command straight from the console, there is no output returned. I've tried using passthru(), exec(), system() and shell_exec(), all to no avail. I'm redirecting stderr to stdout already.

For example:
PHP Code:
<?php
$command = "scp -C -r $files $target 2>&1";
exec($command, $result);
print_r($result);
?>

Will scp the files correctly to the server, but doesn't print any output - $result is just an empty array. I'd like to see the output so I can visually confirm that the files have been transferred correctly.

View 1 Replies View Related

Ubuntu Multimedia :: Capturing Output With Luvcview?

Jan 7, 2010

According to 'man luvcview', if I do this:

Code:
luvcview -o testvid.avi

then luvcview should capture the video to the .avi file. However, when I try it, no output file is created. Grabbing a raw stream or raw frames works fine, but not the creation of AVI files. Am I missing something?

View 6 Replies View Related

Ubuntu :: Capturing Command Output Response

Aug 5, 2011

I run a 3rd party command line utility and it works fine, but sometimes it says "Error blah blah blah... Connection timed out"

I want to script this utility, but I need to not execute the commands in the script if it gives me that connection timeout error.

bash code to capture that response from the utility? Something along the lines of:

Quote:

#!/bin/bash
3rdpartyutil > /tmp/temp.txt
if [ ! -f /tmp/temp.txt]; then
echo no error, run whatever you need to man
fi
rm /tmp/temp.txt

Unfortunately, that doesn't work because the utility outputs non-error information to the screen even when it is successful, so it always outputs something, I never need to see it, but I do need to be able to act upon if some of that text says "error" or "connection timed out"

View 3 Replies View Related

Networking :: Packet Capturing On Remote Machine

May 19, 2010

How can I configure, the packet capturing mechanism to allow non - privileged users to use it...

View 2 Replies View Related

Ubuntu Multimedia :: Unlisted Remote - Capturing IR Code

Mar 1, 2011

I have a unlisted remote which I can't find a lircd.conf for. Have tried irrecord with a mceusb receiver and have had no success. I am running maverick on a fresh install. LIRC is install and functions correctly for MCE remote and sending dishnetwork ir codes. I have found the hex codes for it but have no idea what to do with them even if there is anything to do with them. My question is this, is there any other way to capture the remote codes other than irrecord? Is there a way to manually build the codes?

View 1 Replies View Related

Ubuntu :: Run A Program Installed On A Remote PC Locally?

Feb 11, 2010

Is it possible to run a program installed on a remote Ubuntu PC on the local PC? What I'm talking about is different from simply sending the GUI over the network (like X tunelling). I want the program to use the processor of the local machine. Is this possible?
(Here's an example. PC 1 has a fast processor. PC2 has gimp installed on it but has a slow processor. Can PC2 make GIMP run on PC1's processor over the network?)

View 9 Replies View Related

SUSE :: Remote Authentication Suse10SP2 - Not Doing Locally

Nov 3, 2010

In my job we have 48 machines with Suse10 SP2 and they want all the machines to be able to authenticate to a unique server (something like a Radius Server or TACACS server), not doing the authentication locally. Do you have any idea on what to use and what needs to be change in the Suse Linux password auth for a remote server to be the auth server?

View 1 Replies View Related

Ubuntu Networking :: Mount A Remote (ftp/ssh) Directory Locally

Jan 15, 2010

If you use Nautilus then you can just use the "Connect to server" from the file menu. However if you file manager does not support connecting to servers (like Thunar ) then you can use sshfs.

Code:
sudo apt-get install sshfs
You should create a directory as your mount point, say
Code:
mkdir /media/Server

[Code]....

View 1 Replies View Related

Ubuntu :: Ssh Commands Execute Locally Instead Of On The Remote Computer?

Jul 12, 2010

I can ssh to the remote computer OK, but the commands execute on the local machine, not the remote machine as they should. After much frustration I did the following hoping to clear the problem. I turned off all machines on my LAN, the hub and the router. I then rebooted everything in the reverse sequence - cable modem, router, hub, and then the computers.Then I reinstalled ssh on both machines.

sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
sshd in now running and port 22 shows on both machines. However the problem persists.

View 5 Replies View Related

General :: How To Redirect A Terminal/tty Output To Other Terminal/tty

Dec 14, 2010

hello
I tried to find a good subject but it was the best of mine, anyway I'll explain it here.
some time I do some thing like installing a new application in Linux terminal of my office PC but it take a long time and I have to go home during its installation or configuration process that it is not good to cancel it.My current solution is abandoning the process until next day. I wanted to know is there any way to redirect an input and out put of a terminal to another one, if it works I can continue my abandoned process by ssh to my Linux office PC and redirect that terminal to my new remote sshed terminal from my home.

Thank a lot for any help.

View 4 Replies View Related

Networking :: How To Redirect Locally-generated Packets To Remote Server?

Mar 22, 2010

I'm trying to workaround a limitation in a server application. The limitation is that I can only connect to a LOCAL mysql database. I am trying to fool the server in to using a remote mysql database. I was hoping to do this by simply forwarding 3306 to another server on the same subnet.To that end I've set up iptables rules to forward all connections to port 3306 to a non-standard mysql port on a remote server. This works, except that I need to deal with the loopback interface in a special way and I'm stuck.

View 14 Replies View Related

General :: Grabbing TTY Output From Remote Machine

Mar 24, 2011

Here's the scenario, rsync is running in RMT on tty2. I (LCL) am connected to RMT remotely as root over ssh. Is it possible to grab output of RMT's tty2 on my LCL? I don't want to redirect RMT's tty2 out to my pts, just get a mirror output.

View 6 Replies View Related

General :: Redirect Output From Remote To Local?

Mar 29, 2011

I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work

View 14 Replies View Related

Debian Configuration :: Configure Vino Remote Desktop To Start At Boot - Only View Remotely Once Have Logged-in Locally

Aug 9, 2010

Kernel: Linux 2.6.26-2-686 (i686)
Compiled: #1 SMP Thu Nov 25 01:53:57 UTC 2010
C Library: GNU C Library version 2.7 (stable)
Distribution: Debian GNU/Linux 5.0.8
Desktop Environment: GNOME 2.20

Gnome comes with Vino Remote Desktop as part of it's package. I want Vino to run at boot so that I can login remotely. I am using VNC-4.1.3 for remote viewing. However, I can only view remotely once I have logged-in locally.

View 9 Replies View Related

General :: Terminal Emulator - Output ?

Jan 10, 2011

What is the output of "date -u +%jXfce|sha256sum|sed 's/W//g'" if you run it in a terminal emulator?

View 3 Replies View Related

General :: Short Cut To Copy From Terminal Output?

Dec 10, 2010

if we type a command such as "locate somefilename" in the terminal we will get all the paths to the file name as output. If i want to copy only one line from that output how do i do that without using mouse?i need terminal short cut to copy one line

View 8 Replies View Related

General :: Bash - Get Colored Output When Using Tab Completion In A Terminal?

Feb 27, 2011

Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).

View 1 Replies View Related

General :: Copy / Paste Output From Shell (not Terminal)?

Jul 15, 2010

I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?

View 13 Replies View Related

General :: Redirect Standart Output To Current Terminal?

Apr 17, 2010

i have a process launch by another app, i want to see the output (that is in console) in a terminal (gnome-terminal or tty); how can i capture de standart I/O from a process. my process (aria2) is launch by firefox and the output of ps is like:

# ps aux | grep aria2
dorian 30289 2.8 0.1 12148 4048 ? D 07:08 0:03 aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en

...is running but i cant see the output (download state), how can i capture or redirect standart I/O to my terminal to get something like the output of:

$ aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en --load-cookies=/tmp/flashgot.h2fnxf84.default/cookies --input-file=/tmp/flashgot.h2fnxf84.default/flashgot.fgt
[#1 SIZE:6.7MiB/4,289.3MiB(0%) CN:5 SPD:25.3KiBs ETA:48h01m01s]

View 1 Replies View Related

General :: Show Output On Terminal And Save To A File At The Same Time?

Jul 1, 2010

I am using:

user@unknown:~$ sudo command -option > log

to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?

I am using ubuntu 10.04 lts.

View 3 Replies View Related

General :: Make Gnome Terminal App Support Output Search?

Oct 2, 2010

Using a default terminal and bash, there is no functionality to search the standard output of commands.

One can gain such functionality using other tools, like emacs shell or screen, but I am wondering why such a useful feature is missing, I do remember a simple C-F used to work in terminals.

Is there a way to make the Gnome terminal app support output search? or is there a better terminal app that support searching output natively?

View 5 Replies View Related

General :: Copy Previous Output From Bash Terminal To File?

Oct 26, 2010

I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>

View 2 Replies View Related

General :: Pipe Output To Pbcopy And Then Go Into A Web Browser And Paste It In A Terminal In OSX

May 25, 2011

In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with with whatever was in it the last time the browser was used. What works like pbcopy in Linux?

View 1 Replies View Related

General :: Strange Output Form Terminal - Misunderstood Command

Jul 22, 2011

Tried to make a text file and write something in it (a link) quickly as possible, because I was in a rush. So did this:

[Code]...

Now, looking briefly at the output, can't get what's happened lol! I mean, it's html for crying out loud. Not 'scripting' n all. What do you guys reckon has happened?

View 12 Replies View Related

General :: Way To Stop Command Output To Continue Scrolling Down Terminal

Jan 4, 2011

I moved from a Linux environment from one company to another and one annoying difference came out:When I used to run an application in a terminal (no GUI), the transcript lines were presented one the window - when the window was full then the scrolling of the lines would continue only if one hit the space bar to proceed (of course waiting to user input did not stop the run).

In the new environment the behavior is different - transcript lines keep going on and on so I need to scroll up - and moreover each page-up command is cancelled by the new lines appearing.perhaps this is also reproduce with other Linux commands , say "find" or "ls".

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved