General :: Differences In Output Between Top In Batch And Interactive Mode?
Jul 13, 2010I 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]...
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]...
Intuitively I think that the Login Shell and the Interactive Shell are the same applications but have access to different environmental variables.It this true? Why is there more than one type of shell anyways? You can change users with the interactive shell, why not log on with it to?
View 10 Replies View RelatedIn interactive mode (in Octave, gnuplot, R, etc.) I occasionally press Control + z by mistake. This pauses the program and kicks me back to the terminal.Is it possible to re-enter the original interactive mode (with all the stored variables)?
To reproduce:
~> octave
octave:1> a = [1:10];
octave:2> ^Z
[code].....
How can I recover my session with the variable a defined?
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?
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]...
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 RelatedI 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.
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]....
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:
I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.
Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.
Anyone knows the differences between UID 0 and GID 0?
View 6 Replies View RelatedIs there a non-interactive way to change a user's passwd short of using expect? I'm using Debian.If not, then I guess I need to get this expect script working:
Code:
#!/usr/local/bin/expect -f
set username $env(UNAME)
[code]...
I have a proprietary device - something like an iPad screen - which has a front panel display with touchscreen buttons that work internally as a USB keyboard. During testing/debugging I want to connect it to another keyboard via the external USB port.Any application which I open on the device by pressing some characters on the touchscreen accepts input codes from either USB keyboard. I want to limit the touchscreen USB keyboard input only to a specific set of apps.Is there a program which can help me detect which USB port or device the code is coming from? Or someway I can map one keyboard to send a different set of codes? The device is using Linux.
View 2 Replies View RelatedMy old Intrepid box got old and senile in the hardware, so I had to take it back round the shed and put her down.I buried her next to her favorite tree in the backyard. So yes, I got this new Mini ITX setup with a dual core Atom processor and 4 gigs of ram for my new computer. I'm going to use it as a media center in my living room. However Atom 1.6 ghz is no screamer so I'd like to build a system using a light weight operating environment to leave more power for running programs and playing my media.
I could install the latest version of Kubuntu again but I thought this time I'd try to get a bit deeper into Linux and educate myself. Could someone clarify the differences between XFree86, Window Manager, and a Desktop Environment (KDE/GNOME/etc)? I know it goes like Hardware -> XServer -> XFree86 -> Window Manager (I read the tutorial on linux.org). But where does KDE or a "Desktop Environment" come in? Is KDE a decked out window manager with its own programs that runs on top of XFree86 or what? Or does it totally replace XFree86?
how can I make my sh interactive by default. That I don't have to always type --interactive everytime I log in. I want it to be always interactive. #2- how also do I turn of --posix mode parmanently ? Is there a line I need to drop somewhere or what do i do.
View 4 Replies View RelatedI took the simple approach and installed the gnome desktop, but I have read about KDE and Xfce and am curious. There may be a lot more that I just haven't heard about yet too. So the question is: Without doing a reinstall and messing up the downloads and settings I have now, how do I try a new desktop like Xfce or Kde? Also, what are the basic differences between the desktops?
View 9 Replies View Relatedwhat are the exact differences between Kubuntu and Ubuntu? like programs, etc. the desktop environment is obvious, but what are the smaller differences? I just wanted to know before I download one..
View 2 Replies View RelatedI want to know the differences between fdisk and sfdisk?
View 1 Replies View RelatedWhat are the differences between the shells in Linux (eg. bash,bourne,korn,C etc) and which one is it better to run scripts under?
View 4 Replies View RelatedPossible Duplicate:Forward SSH traffic through a middle machine.I am looking to get an interactive ssh session on a remote machine, but must login via a gateway.For example, right now I do the following:
@local % ssh <user>@<gateway>
@gateway % ssh <user>@<remote>
Is it possible to achieve the same thing in a single command from my local machine? I have tried:
@local % ssh <user>@<gateway> 'ssh <user>@<remote>`
From the output i am indeed able to login, but do not get an interactive session. I took inspiration for this attempt from using ssh to run a command remotely.
How can I disable the interactive boot up process? Also what is the pros and cons to doing this? Will this affect my being able to get to runlevel 1?
I have been googling it but not really clear on the pros/cons etc.
I am talking about a server class machine that is in a locked room, not a desktop.
I know it can be turned off in /etc/sysconfig/init # Set to anything other than 'no' to allow hotkey interactive startup... PROMPT=yes
I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?
View 2 Replies View RelatedWhat are the differences between shell , console & terminal?
This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating between a shell (such as Bourne or bash) and the Terminal application in GNOME. I realise that both are completely different but I can't seem to find a clear answer written in text. Could anyone clearly distinguish between both?
Is it correct to say that Windows UAC is conceptually the same as Linux sudo?
Can you point out the differences between the two?
I have come across the use of the term terminal, virtual terminals/consoles, real-text terminals but do not understand what terminal refers to. Does it refer to the screen that is in-front of me whilst I post this question or does it refer to something specific?EDITI came across a similar post at What are the differences between shell , console & terminal? and it seems to be similar to the one I posted although am still confused about the use of the sentence Decades ago, this was a physical device consisting of little more than a monitor and keyboard. What does this device look like and how is different to a monitor?
View 2 Replies View RelatedIam having the following two linux files.
[Code]...
Now i want the following out puts
1. similar nos in both the file 1 and file 2 > output= File 3;
2. In file 1, but not in file 2 > out put= file 4;
3. In file 2, but not in file 1 > output = file 5;
The command sdiff is giving output with symbols > < | etc, and the such output file is not clear and ready to print. I want to print directly the output files. AND ALSO TELL ME WHERE I HAVE TO WRITE AWK PROGRAMS AND HOW TO RUN IT.
I am interested in kernel configuration and compilation, so I have executed ltib and menuconfig, but I am not sure to understand what is the difference between Linux Target Image Builder and the Menuconfig tool? Is menuconfig used by or included in ltib? I understand that both tools generate a kernel, But I guess ltib can process "something more"? (packages/target selection? )
View 2 Replies View RelatedI wish to prevent some programs from "phoning home", and to allow other programs to access only specific web servers.Is there any way to interactively allow or decline outbound communication from individual programs on Ubuntu?
View 4 Replies View RelatedI wanna delete a directory with its files and I wanna do that as follows: rm -r dirToDelete Unfortunately, I always get asked for EACH single file if I wanna delete this because it is write protected.... Is there a way to suppress this feedback message so that just the whole directory with its contents disappears?
View 5 Replies View RelatedMy execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh
View 1 Replies View Related