Ubuntu :: Continuous View Of Ls Command Output?

Feb 14, 2010

My server is currently copying a large amount of date. I periodically check how much has already been copied by using the "ls" command in the destination folder. Is there a way so that ls kind of self updates itself? Like in a log or so? Or like when using cp -v?

View 9 Replies


ADVERTISEMENT

Software :: Bash Command History Log / How To Write It Continuous?

Apr 14, 2011

I've been looking for how to set this up in bash with no luck so far. I can change what file the history log is written to, and how much history is saved. But it only writes the saved part when bash exits. Instead, I'd like to have bash write that file continuously as each command is entered (and maybe also do an fsync(2) to flush it to disk). That way I can see the command I crashed the box with Anyone know the magical incantation for that?

But there appears to be nothing that I can find there, in the man page, or other searches, that suggest it even can do continuous.

View 12 Replies View Related

Ubuntu :: View Script Output Using SSH?

Dec 13, 2010

I have a python script, called test.py, that does the following:

Quote:

while (1):

....print "hello world"

(this script simply prints 'hello world' continuously).Now, I am using two machines (machine A and machine B). Same user is used for both machines. I would like to do the following:

(1) [working with machine A] run test.py programatically on machine A { meaning, a local python script will be running test.py using say os.system(....) } ( at this point, the script test.py is printing "hello world" to the screen of machine A )

(2) [working with machine B] I now want to log in into machine A using ssh and 'view' the output of the script that we ran in (1)

How do I achieve this? I know how to write the script that will be running and starting test.py on machine A. I also know how to ssh from machine B to machine A.

What I don't know is:

(*) What command should I use in (1) in order to run the python script so that its output can be easily viewed while logging from a different machine (machine B) to machine A?

(*) Following the ssh from machine B to machine A, how do I 'navigate' to the screen that shows the output of test.py?

View 1 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?

View 4 Replies View Related

Programming :: Show The Output Of Shell Command Into A Textbox, Ex Ps -efc Command?

Oct 20, 2010

I am using gtk to program GUI. How can I show the output of shell command into a textbox, ex ps -efc command ?

View 3 Replies View Related

General :: Redirecting Command Output To Input Of Another Command?

Jul 2, 2011

I want to run gsettings list-schemas (which return a list of about 100 names separated by spaces)and somehow direct each name one at a time as the input to this command:gsettings list-recursivelyI've tried it with awk, and standard | piping and also as a string variable strvar=$(gsettings list-schemas) and using the $strvar as the input butam missing something in between I'm sure like for - while or proper syntax of awk etc

View 3 Replies View Related

General :: Use Output Of Previous Command As Parameter To Another Command?

Nov 13, 2010

I want to use the output of a previous command as a parameter to another command. For example: to know where "nice" is stored i typed: which nice output: /usr/bin/nice now the second command i typed is: ls -l /usr/bin/nice Is there a way to have a single command like: ls -l which nice ?

View 4 Replies View Related

Ubuntu :: Customize AUCTeX View Command In Emacs?

May 20, 2010

I've been using Emacs with the AUCTeX package to edit and compile my .tex documents lately, but there's something that's been bugging me. First, here is the short question:How can I costumize the default view command emacs runs when I type C^c C^c <enter>?I've read that it's done with the tex-view-dvi-command variable, but I've had no luck getting it to work at all.Now the explanation:It bugs me that whenever I type C^c C^c to compile, and then C^c C^c to view dvi, emacs doesn't automatically give focus to the dvi viewer (xdvi). Digging a little, I found out that the command "wmctrl -a main" gives focus to xdvi ("main" is the title of the xdvi window). So, if I can only customize AUCTeX's standard view command to include "&& wmctrl -a main" at the end, than my problem would be solved

View 2 Replies View Related

Ubuntu :: Cut Command Netcat - View The Foreign Ip Addresses?

Dec 28, 2010

So I opened a terminal and fired up netcat.I only wanted to view the Foreign Ip Addresses so I used

Code:
netstat --tcp --numeric | cut -c 45-65
and that gave me[code]...

There are two things that I am trying to accomplish here. The first is that I would like to "cut" the first three horizontal lines so that the output is only ip addresses.I tried tail but the number of different IPs changes so it still gives me those top lines. I tried head but that doesn't seem to give me any output at all.The second thing I would like to do is to filter out duplicate values. For example the output above has 2 duplicate entries of 66.102.7.101:80

View 5 Replies View Related

General :: Command To View HBA Information?

Feb 4, 2011

What is the command to view HBA information?

View 2 Replies View Related

General :: Ls Command To View Page One By One

Dec 22, 2010

I want to see files and directories which are in /etc directoty. When i write # ls command it scroll all files at a once and i can't see the files whic starts from a or b .Is there any combination in ls command by which i can view files as per page by pressing spacebar of enter key to see next files.

View 4 Replies View Related

Ubuntu :: Command To View Disc Space Consumption By Dirs?

Jan 28, 2010

I am searching a GUI based "tree view utility" which shows me which directories consume how much hard disc space (cumulative, including recursively the sub directories; including hidden files). Is there such a tool fur Ubuntu/Linux and how do I install it? Is there at least a cmdline command which does the same job in terminal window?

View 1 Replies View Related

General :: View Cookies From Command Prompt?

Mar 11, 2011

I was curious if I would be able to view cookies from a command prompt when ssh'd into a machine. On a test machine running fedora 13, I found that the cookies were stored in a cookies.sqlite. I made sure that all instances of Firefox was closed and attempted to view the file running the following command

sqlite3 cookies.sqlite

It loaded but I was unable to run view any of the information because the database was locked? There were no instances of Firefox running and I check to make sure there were no services of Firefox running as well. Am I doing something wrong? Is this not the correct way to view cookies from the command line ? I have tried google searches and has since been unable to come up with anything.

View 4 Replies View Related

Ubuntu :: Open A Terminal And Start The 'top' Command To View The Running Processes

Oct 18, 2010

When I open a terminal and start the 'top' command to view the running processes, in the summary view I get 4 users. I guess that in addition to my account the root runs in the background but who are the other 2??

View 1 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Fedora :: View A User's Group In The Command Line ?

Mar 23, 2011

I am learning about group and user management with Fedora and can change the user's group using the usermod command but did not know if there was a command to see the group currently associated with the user.

View 3 Replies View Related

General :: Command Line - How To View More Of My History In Screen

Jun 28, 2011

I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in Screen, but I cannot seem to find any commands that will work. I need to see the onscreen output "further up" than I can on my current screen. CTRL + a is supposed to put me into scroll mode inside Screen, but it's not working.

View 4 Replies View Related

General :: Administration - View Command History Of Another User

Jul 11, 2011

Can anybody show me how to view command history of another user? I am an admin on my machine. I can see normal history by viewing /home/user_name/.bash_history but i can't see commands of that "user_name" when they were doing sudo. Is there a way to view all command executed by one user?

View 3 Replies View Related

General :: Administrator - Command Used To View Processes Running

Nov 9, 2010

The command used to view processes running on the Linux machine is?

View 8 Replies View Related

SUSE / Novell :: Vncviewer Command Line For View Size?

Aug 8, 2010

I use vncviewer command line to remote access my pc from my notebook.
Is there any option to resize the view like windows client can by percentage?
my notebook screen size is 1280x800, while I use bigger resolution for my pc 1280x1024 if not mistaken.
already look here: http://linux.die.net/man/1/vncviewer but I don't see any option to do that.

View 9 Replies View Related

General :: Run A Command Per File From The Output Of "find" Command?

Sep 8, 2010

I want to scan a particular directory recursively and run a particular command with each file as input. For this I am using "find /dir/path". I dont want to write any long script containing loop on the output of "find". I want a single command which will allow me to run a command on each file of the "find" command output.

View 3 Replies View Related

Ubuntu :: Port A Command Output To A While Loop?

Oct 3, 2010

How can I port standard out from ls or any other command into a while loop?

Code:
while read line
do

[code]....

View 4 Replies View Related

Ubuntu :: Echo Command To Output First Argument

Nov 5, 2010

In a script, when I enter "echo $1" the first argument is outputted. When I enter:
a=1
echo "$$a"

The output is just "$1", not the first argument. If I enter:
a=1
b=$$a
echo $b

The output is still "$1" and not the first argument. How can I get echo to output the first argument without use "$1" directly?

View 4 Replies View Related

Ubuntu :: Emacs -- Run Shell Command W/o Output?

Jul 12, 2011

I write LaTeX in Emacs and then run a shell script to process the LaTeX code. I used to run a subshell buffer with M-x shell and then execute the script from within there, but this results in a lot of switching between buffers, which seems unnecessary. Then, I found out about executing shell commands with M-! cmd RET, as described here:[URL]The problem with this is that the output from the script splits my screen. It's a nuisance, and I would like to run the script without any output. I've tried appending > /dev/null to the command, but it doesn't work.For example, when from within Emacs I enter M-! followed by

Code:
sh make.sh > /dev/null
it splits my screen so that one portion displays output from the make.sh script. I want it to run silently, and leave my Emacs buffers alone

View 3 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

Software :: Failed To Install Oracle - Command To View Current DISPLAY Environment Variable Setting

Jun 28, 2010

How to install oracle? I have been tried many times but seems can't resolve the DISPLAY issues.

All installer requirements met.

Use the following command to view the current DISPLAY environment variable setting:

View 2 Replies View Related

Ubuntu :: Use Multiple Cut Command To Print Output On A Line?

Apr 27, 2010

how to use multiple linux cut comman to display on same line ?

e.g ls -il | cut -f6 d:
ls - il cut -f9 -d:

The linux script output is

filename
123

How to use cut to display on same line ?

View 1 Replies View Related

Ubuntu :: Output Of Command In Less And The Words Highlighted By Grep?

Sep 1, 2010

So theres this command

Code:
man -k mail
Which lists commands that contain the keyword "mail" in their description.I want the output of this command in less and the words highlighted by grep. Something like

Code:
man -k mail | grep mail | less
The command doesn't work, how do I fix it?

View 2 Replies View Related

Ubuntu :: Ctrl-Alt-F Command Prompts Have Messed Up Output?

Nov 2, 2010

Not sure exactly how to explain it. My command prompt screens are appearing messed up.the resolution appears to have squeezed the command prompt vertically to just a few pixes at the top of the screen. The command prompt appears to also repeat several times horizontally. This is also the case with boot-up.I'm still in the experimental phases of learning how linux works, messing with GDM, and installing/installing some boot screen tweaks here and there to see what would happen.I can't quite remember exactly WHAT I did.

View 6 Replies View Related

Ubuntu :: Shell Command Output Not Showing Immediately?

Jan 18, 2011

This is an extremely weird issue that I can't find any help with on Google. It is minor but extremely annoying.

When I type in a linux command in the terminal, (e.g. "ls -la"), and then press enter, the cursor goes to the next line and just sits there, as if its processing some long command.

If I press enter again, I see the ls output as well as my prompt twice. It's like the terminal window isn't auto-scrolling, but I've also seen this happen when there wasnt even enough text in the console screen to warrant a scrollbar. Has anyone seen this before and know what I need to do? I hope what I'm asking about makes sense.

View 3 Replies View Related







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