General :: Specify Top's Screen Width In Batch Mode?

Oct 14, 2010

I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets truncated at the edge of the screen. This is perfect when running and displaying in a terminal. However, I am sending STDOUT to a file for parsing later and want the full command name logged. Is there a way I can tell top to use a specific screen width? (I know it maxes at 512, that would be fine)

Is there a better way to achieve a similar goal: get periodic stats about which processes are running and how many resources they are consuming?

View 2 Replies


ADVERTISEMENT

General :: Differences In Output Between Top In Batch And Interactive Mode?

Jul 13, 2010

I am trying to figure out why top run in batch mode outputs so many more lines than when run in interactive mode. For example:

[Code]...

View 2 Replies View Related

General :: SFTP Fails Public Key Authentication In Batch Mode?

May 26, 2011

I am attempting to set up an automatic transfer via sftp using public key authentication. I have created a public/private key pair to connect to the remote server without using a password. I have also been able to use this key pair to login from the command line: sftp -vvv -oPort=<server-side port> user@server.Debug info from interactive command:

Code:
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey

[code]...

View 1 Replies View Related

General :: Grepping Lines More Than A Screen's Worth Width

Jan 25, 2011

What If I wanted to scan a string like the following...

[Code]...

Anyhow just one giant string that's longer than my screen's width. If I simply copy and paste that string after a grep command, it seems that the terminal inserts newlines at the terminal's width and therefore not the whole string goes in. Even if I insert a quote before the beginning of the string and then paste it in, terminal still reads in a newlines somehow and obviously says command not found, etc.

View 2 Replies View Related

Programming :: Adjust Table Width So That It Fits To Page Width

Mar 22, 2010

A couple of days I started using latex and have still one question about the table width. My table is too wide for a page. How can I adjust it so that it fits on the full width of a page? Can I use a command or do I have to specify each column widths by hand?

My table looks like this;

I did try several commands likeextwidth, esizebox, setlength but didn't found the solution yet.

View 2 Replies View Related

Programming :: Get Console Window Width - Why Ioctl Always Return 0 Width

Jul 1, 2010

I use ioctl to get the cosole window size (the SSH window).

I use the following code:

When I debug on linux pc, it gives me the correct window width. But after I try it on router (this is my enventual place where my code shall run), ioctl always give me 0 width, that is, numberOfColumnsOfTerminalWindow == 0. but the returnValue is 0 which means that the function call succeeds.

View 2 Replies View Related

Ubuntu :: Gimp Batch Mode - Closing Images When Done With Them?

Jan 4, 2011

I need to close images I work with when I'm done with them. As an example scenario, I can open several images and work on them, but every time I open them they create new instances in gimp, meaning the gimp could in the end be using several gigs of ram for images I can't even see are there.Also, I can't start gimp for batch only (Using 2.7 dev version)Code:$ gimp -i -b "(script-fu-thing 1)"This is a development version of GIMP. Debug messages may appear here.(gimp:11407): Gimp-Core-CRITICAL **: gimp_viewable_get_stock_id: assertion `GIMP_IS_VIEWABLE (viewable)' failedgimp: fatal error: Segmentation fault

View 1 Replies View Related

Software :: How To Convert OS / 2 Icons To LINUX Format In Batch Mode?

Apr 23, 2010

I have few thousands of icons from my OS/2 PC and I would like to convert them to format acceptable by LINUX GUI (*.png, *.xpm).I attempted to open an OS/2 *.ico files with few LINUx graphical apps (GIMP,Fspot, gThumb,Gwenview,Kolourpaint,Okular) but none can understand the format. It's somewhat problematic for me
to convert under OS/2 now so I'm looking for a LINUX app.Are there any LINUX apps that can convert OS/2 *.ico files to a LINUX format in BATCH MODE? If it requires manually "open then save-as", I can't repeat it few thousands of times.

View 1 Replies View Related

Ubuntu :: Gimp Batch Mode - Predetermined Layer On Another Image - Export As Png And Discard Changes

Jan 3, 2011

I want a simple short gimp batch script that will take one image, paste it into a predetermined layer on another image, export as png and discard changes. Unfortunately, I can't find any tutorials on using gimp batch. Anyone know any such tutorials (Or better yet, what my script needs to be)

So far this is what I have. I need a way to loop through the layers to check the name of them, I also need a way to ditch the previously opened files from memory (Otherwise gimp still has both images in memory) (I'm going to mark this solved so I can make a cleaner post once I get it together)

[Code]....

View 1 Replies View Related

Ubuntu :: 10.4 - Setting Default Terminal Window Size To Screen Width

Oct 3, 2010

In 10.4 I had set my default terminal size to my screen width - I type some long commands. After running an update this morning, my terminal comes up in the install default size. Using the preferences dialog, I cannot find the control to set the default width. Has it been removed? I hope I'm looking in the wrong place, but I have a chilling feeling that it's been dropped or perhaps just accidentally commented out.

View 2 Replies View Related

Software :: Launch A Batch File With Screen?

Jun 27, 2011

I understand SOME of how to use screen; attaching and detaching screens, etc.

for example:
screen -d -m links cnn.com

Then I can type
screen -ls
or
screen -r
and re-attach to that session.

But what launching a batch file? Said batch file contains 2 commands; a CD command, and a command to launch Python to run a certain Python script.

Whenever I use the batch file as the command for Screen, it always exits and terminates the screen session -- there are always "0 sockets". Even though the Python script in question is very persistent, and runs indefinitely.

View 8 Replies View Related

General :: Partition Table From Fdisk - Cylinder Mode - Sector Mode - Expert Mode ?

Aug 30, 2010

Below is a print out of my partition Table from Fdisk, in Cylinder mode, Sector mode, and then in expert mode?

Why in expert mode does it look like Partitions 2 and 3 share the same sector / hd / Cylinders? Is this OK?

Code:

View 3 Replies View Related

General :: Kpdf Won't Go Out Of Full Screen Mode / What To Do?

Jun 18, 2010

GNU/linux kernel 2.6, slackware 12.0
KDE 3.5.7

I was running kpdf and clicked Full Screen from within the kpdf window, I think in the View menu. Now I don't know how to regain control of the screen. I mean the menu bar is no longer present. Each time I run it, it is in full screen mode. I pressed F1 and read the section on the View menu. But it doesn't say anything about full screen.

View 4 Replies View Related

General :: In VI Mode Yellow Patches On Screen

Aug 18, 2010

While seeing any text file in vi mode, yellow patches are appearing on my screen in all spaces. Same are not appearing in cat mode. This is very clumsy to understand the text. How to remove those yellow patches. It seems earlier I have used a command to remove empty lines in between text file and this problem is occurring since then.

View 5 Replies View Related

General :: Change Screen Resolution To A Unsupported Mode?

May 8, 2011

I just installed Opensuse 11.4 (gnome) in a new desktop but the screen resolution is 1360x768 60hz and this is not listed in monitor settings, so the monitor keeps displaying "not optimized mode" message. In order to use the correct resolution, I used these two commands:xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsyncxrandr --addmode VGA1 "1360x768_60.00"it worked, but every time the computer is restarted, I must run this command again. So I think "I just have to create a script in the initialization!". It works, every time the computer is started, there is no need to run the commands again. But when program enters in full screen, the resolution is "lost" and the monitor message is displayed again.

View 7 Replies View Related

General :: Determine If Gnome Is In Screen Saver Mode ?

Feb 8, 2010

I am running a SLC 5.2 with a Gnome 2.16 desktop setup for all the class room terminals. Where can I determine the status of the screensaver. The value could then be periodicaly tested within a "cron" script. If screen saver was running then a "skill" could then be called to force a complete logout releasing the terminal for another student.

View 8 Replies View Related

General :: Changing A GTK Caret Width?

Jul 17, 2010

How can I change GTK caret width?

Debian GNU/Linux 5.0.4;
Gnome 2.22.3.

View 1 Replies View Related

General :: Changing Width Of Zmixer?

Oct 3, 2010

Is it possible to change the width of zmixer??

zmixer eventually uses gtk_vscale but I am not able to increase the width of it.

View 2 Replies View Related

General :: Making Arch In Full Screen Mode In VMware On Windows?

Jan 15, 2011

I have installed the most basic Arch Linux only with command line interface as guest OS on Windows using VMware. The problem is when I maximize the Vmware window, the Arch Linux console does not adjust to the full screen. How to do this without installing X window?

I also want to make copy-paste work to and fro from windows without installing X. Is it possible?

View 1 Replies View Related

General :: Change The Default Width For Shell?

Apr 28, 2011

anyone knows how to change the default width for shell window in Linux(Ubuntu), so that I don't have to re-size it every time I open it up?

View 2 Replies View Related

General :: Get The Tmux Window Full Width?

Jun 21, 2011

tmux shows screen like this:

[code]...

Window has non-maximum width, attempt to copy text from it leads to "" getting in text. How to fix it and get the tmux window full width?

View 2 Replies View Related

General :: Default-tab-width A Emacs Function?

Apr 22, 2010

Which is correct?

Code:

Or

Code:

I got these in two web sites.

From emacs window:

How would to get info about it in emacs documentation/manual?

View 1 Replies View Related

General :: Resizing And Cropping Images To 6x4 To Width Of 1024?

Apr 25, 2011

I have a mixed set of images, each one having a slightly different resolution with a slightly different aspect ratio from the other images.I have tried using commands like:convert -resizeand:convert -cropHowever I can't seem to figure out the correct command to make all images have a width of 1024 and an aspect ratio of 6x4, without causing the image to stretch or get squashed.

View 2 Replies View Related

General :: Firefox 3.6 And Up - Adjust The Width Of The Vertical Scrollbar

Aug 20, 2010

I'd like to widen the width of the standard vertical scrollbar in firefox 3.6 or above. I know now that it is not an edit in about:config and appears that you have to edit in user.js, prefs.js, or in the Profile folder but I 3 prefs.js in my profile folder -

prefs.js
prefs-1.js and
prefs-2.js

Secondly, I cannot find the user.js file. its location if it is still a viable file to edit. which (or what) prefs file I should concentrate on for this edit.

Plainly, it shouldn't be this tough to adjust the vertical scrollbar width, in a perfect world it would be adjustable though Windows. Anyway, this old fart's having difficulty grabbing that scrollbar.

View 3 Replies View Related

General :: How To Customize Width Of Window Tabs In Kde Task Bar?

Mar 27, 2010

My task bar is quite broad. so when ever i open more than 6 windows at a time then the task bar adjusts the tabs in two row. how can explicitly specify the width for those tabs. so that they all fit in one line.

View 1 Replies View Related

General :: How To Change X-Windows Default Border Width For All Window Frames In Ubuntu

Jun 14, 2010

Way back from Windows 3.x days to the latest 64bit Windows 7 (classic/standard theme)there is a way to make the window edge border wider then 1 pixel.I often use 3 to 5 pixel to make it easy to grab on hi-resolutions displays and hi DPI monitors.There doesn't seem to be an easy or obvious way to do this with the Gnome X-Windowing system?

View 3 Replies View Related

General :: Screen Rate - Refresh Mode Of The Monitor In The Monitor Options Have Only One Option 60Hz

Mar 20, 2010

I am having problems with the refresh rate if the screen. In the refresh mode of the monitor in the monitor options have only one option 60Hz. I have LG 24 + ATI Radon 3870, and have already installed the ATI driver via Ubuntu download center.

View 1 Replies View Related

General :: How To Move Windows In Batch From One Display To Another

Sep 26, 2010

I have several program windows open on my main display (showing on my physical screen).I've created a second display for VNC connections (using vncserver :14).Is there a way I can move all open windows from the default display to the VNC display?

View 1 Replies View Related

General :: Batch Renaming Of Files In A Directory Using Sed

Dec 11, 2010

I run a script which generated about 10k files in a directory. I just discovered that there is a bug in the script which causes some filenames to have a carriage return (presumably a '' character).

I want to run a sed command to remove the carriage return from the filenames.

Anyone knows which params to pass to sed to clean up the filenames in the manner described?

I am running on Linux (Ubuntu)

The character causing the filename to 'break up' accross multiple lines appear to be a CR (carriage return) instead of ' '. The filename is being diaplayed in thetitle of a text editor with %0D in the positions of where the file name breaks up. So I need to remove the CR chars from my filenames.

View 1 Replies View Related

General :: Execute Commands Over SSH In A Batch File?

Feb 17, 2011

I'm looking to, all in the course of one batch file:

ssh into a remote computer execute commands (per the batch file) on the remote host.

What options do I need to add to the ssh invocation so that the batch file executes the lines following the ssh invocation over the connection?

e.g., with sftp it's simply adding a -b /dev/stdin and then << EOF at the end; how do I do this with SSH?

View 1 Replies View Related







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