Slackware :: Slight Delay When Processing Commands Using Bash Shell?
Apr 24, 2011
I upgraded from Slackware 64 13.1 to Slackware 64 13.37 a week or so ago. I am now having a perceptible delay of a few seconds when launching commands from the command line, say for example: screen -R.
My laptop is an X200 with 3GB of RAM.
View 7 Replies
ADVERTISEMENT
Jan 26, 2011
When I'm in OpenBox, I often have a termianl (lxterminal) open in the background. The terminals responds quickly when logged in as my standard user. If I, however, use su to switch to root, there's about a 2 or 3 second delay on the output for any command I type. This delay goes away if I type another character or tap the spacebar. That input is read as normal -- I've accidentally answered 'y' to prompts before.
My machine is an ASUS Eee PC 1001P (1GB of RAM, Atom 450) with an 40GB Intel SSD.
View 8 Replies
View Related
Mar 2, 2011
Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After pressing Esc and any other key afterwards the switch is immediate, and the command for the key pressed after Esc is executed. Any idea what might cause this?The Vim configuration is not the problem as the delay does not occur when I run Vim outside tmux, so this is probably related to tmux somehow. I use gnome-terminal btw.
Also worth noting, it seems I can not define key bindings in tmux for Esc, my plan was to bind Esc to:bind Escape send-keys.Alas, it seems binding anything to Esc for tmux does not work. The same problem occurs in screen as well.
View 2 Replies
View Related
Jan 5, 2011
I have a command which on the command line needs to look like this
rlam -if3 '!pvalue -H image1.jpg' > image2.jpg
Nevermind what rlam or pvalue do ... they are part of a program package I am using. The above command works on the command line, and also when written verbatim in a bash shell script.
My problem is: in the script I wish to replace image1.jpg with the content of a variable, e.g.
IM1=image1.jpg
How to I get the script to insert the value of $IM into the command when the pvalue part of it needs to be quoted?
View 1 Replies
View Related
May 26, 2010
I need to process billions of small files using bash shell commands with limited memory size (256MB). If any of those files contain certain "keywords", the file will be removed. I tried with command:
find . -type f -exec grep -i -l -H "keyword" '{}' + | xargs rm -rf
where all files are located within the current directory. But the command above failed in "out of memory".
View 1 Replies
View Related
Mar 14, 2011
I would like to ask whether there is a way to postpone or delay message processing on postfix mail server. E.g. to postpone message transfer/relay for 5 minutes to be able to dequeue mis-targeted emails.I couldn't find anything because these keywords mislead to performance problems.
View 2 Replies
View Related
Jun 11, 2011
I'm on a Dell Inspiron 6000. I installed i8kutils and it works. Fan speed reduces CPU temp from 50C to 44C. A start-up script invokes the i8k module: $ udo /usr/sbin/modprobe i8k force=1 which creates /proc/i8k. The man page for i8kctl is straightforward: a few simple commands to read info from the aforementioned file.So. I know nothing about writing even basic bash scripts. I gave it a go here but I know this is way wrong. Would anyone like to help a guy out? This is my starting point (don't laugh):
Code:
#!/bin/bash
# script to toggle fan speed low/high
[code]...
View 5 Replies
View Related
May 8, 2011
I need something about file processing tutorial in terminal, about its commands.
View 2 Replies
View Related
Sep 1, 2010
I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this
View 2 Replies
View Related
Jul 17, 2010
below are the details of my system. I have bash as my current shell, some really common commands aren't working.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])
Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$
[Code]....
View 13 Replies
View Related
Aug 31, 2010
Does anyone know a method of being able to process the complete and literal command line passed to a shell script ? I want to have the command line parameters with ALL characters (including meta characters e.g. $ literally).
So as if there was no shell to substitute or expand parameters nor applying it quoting rules.
View 5 Replies
View Related
May 14, 2009
I was asked to list passwordless or locked accounts in a fedora system. As far as I know, fedora or RH dont allow passwordless accounts (the system locks the account Edit: ... unless you set passwd -d :-P ), so I might show info about locked accounts.
I am totally aware that I could do a grep or an awk searching for "!!" or "", but my people is asking me to check against passwd -S (which prints info of accounts). The thing, is that in Solaris you can check with passwd -a -s all the users, but in Linux I couldnt find anything similar. what approach do you reccomend for passing, say , the list of users ( like the output of awk searching only user names) to the command passwd -S one by one?
View 4 Replies
View Related
Dec 1, 2010
I would like to read unix file permissions into a bash array for processing but tbh I have no idea how to do this. Then I will check for each individual access right l, d, x etc.
View 11 Replies
View Related
Dec 17, 2014
when i want to opening lock screen and after entering password take too long time to open lock scrren and i can not find what is the problem.i can not find any clue in my logs, so this is some of syslog :
Code: Select allDec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): Gtk-WARNING **: Symbolic icon /home/ali/.local/share/gnome-shell/extensions/lockkeys@vaina.lt/icons/numlock-disabled-symbolic.svg is not in an icon theme directory
Dec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): Gtk-WARNING **: Symbolic icon /home/ali/.local/share/gnome-shell/extensions/lockkeys@vaina.lt/icons/capslock-disabled-symbolic.svg is not in an icon theme directory
Dec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c:2579:
[code]...
View 1 Replies
View Related
Mar 14, 2010
I want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
View 6 Replies
View Related
Jun 25, 2010
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
Code:
>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...
I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.
View 4 Replies
View Related
Oct 27, 2010
However when i logged into it, i noticed that the movements with the curser was extremely slow and happened with a delay, but this only happens when i have an window open, its fine when its just the desktop Same thing happened with Gnome-Shell i think it must be mutter because its fine with normal Ubuntu Is there any solution to this at all?
View 1 Replies
View Related
May 19, 2011
highlight text, go to where I want to paste it, click middle mouse button. The text then appears after a delay of at least a second, sometimes several. In SW13.1 and previous, the pasting was almost instantaneous. How do I get rid of this delay?
View 2 Replies
View Related
May 14, 2010
delay the retry response from SSH (for, say, 10, 20 or 30 seconds) when a bad password is tried by a whacker? I mean, when I'm getting hit by 10 or more break-in attempts, is there some way to make SSH delay the next try from the site that's trying?I seem to remember something about this but haven't been able to find it and, so far, reading the SSH documentation hasn't been
I have DenyHosts running (that puts entries in /etc/hosts.deny after a few tries to break in) and I completely block China, Korea and a few others that are a constant annoyance with IPTABLES but I do get hit pretty much every day and would like to discourage the bastards as much as possible (the hits are a second or so apart which tells me they're automated and I figure delaying the response will discourage 'em).For example, here's the overnight entries from /var/log/messages (the "refused connect" are from /etc/hosts.deny entries generated by DenyHosts):
Code:
May 13 03:49:50 fubar sshd[30255]: refused connect from 200.49.226.12 (200.49.226.12)
May 13 03:51:27 fubar sshd[30256]: refused connect from 200.49.226.12 (200.49.226.12)
[code]....
View 12 Replies
View Related
Jun 13, 2011
I have a new installation of Slackware 13.37 on an old Dell Optiplex P4. Right after installation (when I only had a root account) I found that X (regardless of window manager) would develop video problems after a few minutes (horizontal lines, slowdown -- though without crashing). A message board informed me that that there was a bug in my onboard Intel video chip that would require me to enable shadow buffering (which amounts to disabling 2D acceleration). I made the change in the Xorg.conf, and the issue disappeared.
However, once I finally got around to adding a new user, X began acting up again, though I have no idea whether it's related to the earlier problem. Now, after a few minutes, it actually crashes -- though only when started under the new user. Root still works fine. I'm new to Linux, and still trying to sort through all the different logging tools, so I'm not sure what I ought to be posting. Here's the relevant bit from Xorg.0.log:
Code:
[ 1886.178] (II) intel(0): Modeline "800x600"x70.0 45.50 800 840 920 1040 600 601 604 625 -hsync +vsync (43.8 kHz)
[ 3090.195]
Backtrace:
[ 3090.195] 0: /usr/bin/X (xorg_backtrace+0x3b) [0x80e72fb]
[ 3090.195] 1: /usr/bin/X (0x8048000+0x5dbf5) [0x80a5bf5]
[Code]...
View 6 Replies
View Related
Dec 3, 2010
What happens when the script executes is that the ssh connection works and parks me at the remote hosts's shell login. Therefore, the "firefox" command refuses to execute. I need to know how to make the "ssh" connection occur, stay open, and go into the background so that the rest of the script can execute.If I could also do this with the "firefox" line so that the entire term window could be closed would also be helpful.
View 3 Replies
View Related
May 22, 2011
The panel plugin from xfce4-mixer has a bug:s icon doesn't update as the volume is changed. This bug has already been reported.One curious thing about it is that, if you right click on the volume icon on the panel, go to 'Settings' (or 'Properties', I don't know, mine is in Portuguese) and then close the window that pops on the screen, the icon is updated.Is it possible to open and close the settings window automatically with a bash script? Like this, I could associate this script with the volume keys of my keyboard, so that the icon is updated as the the volume is changed.
View 2 Replies
View Related
May 11, 2011
After GRUB 2 comes up (I'm running Ubuntu 10.10) and I choose the OS to boot, there is about a 5 second delay where nothing appears to happen after I make the selection -- no disk activity. It happens consistently every time I boot. Again, this is after I choose the OS to boot, so it shouldn't have anything to do with the standard delay to allow me to choose the appropriate OS.Is there a good way to troubleshoot this and determine what is causing the delay?
View 4 Replies
View Related
Apr 23, 2010
i was attempting to "speed up boot time" by using the "dash" shell instead of "bash"there is a post on here which describes this.i installed the scripts and uhhhh....rebootednow it seems that i kinda sorta forgot to install "dash" before reboot and now ihave no system shell.no root user accessonly my regular user works, kinda...it seems that i cannot edit anything eitherit won't do any temp dataso with mc i cannot save any edited files.....prompt looks like thismichael@(none):i am hoping i just need to install dash....but with limited power at the command prompt this may be interesting.
View 5 Replies
View Related
Mar 1, 2010
New to Fedora (from Windows), I am up and running ok with packages from the repository but only half ok with Processing, the Java graphics programming front end from processing.org.Their download gave me a .tgz file which Package Manager extracted for me into a location of my choice and where there is now a "processing" shell script.This works ok and I have managed to create a launcher on the desktop. That starts ok but always with processing's default action of giving you a new and automatically named work file.In Windows an existing Processing file (.pde file) could be "opened-with" Processing. Trying to do similar in Fedora I find that I am expected to nominate an Application to open with but Processing has not installed as an application.I guess the question is how do I promote Processing to be an Application?Or is there a different approach?
View 4 Replies
View Related
Nov 26, 2009
what is the command for:
locking the screen
creating a new folder
log out
on the shell?
View 3 Replies
View Related
Sep 14, 2011
Programs like matlab/octave and I'm sure many other ones allow you to start typing a command, and then hit Up to recall the last command that starts with the typed characters. Common linux shell bash doesnot do this. Is there a different shell that does? I'm not asking how to find out the last command, I'm asking if there's a shell that's a little friendlier.
View 3 Replies
View Related
Aug 24, 2010
i need to run a command from a shell script that requires me to answer "Yes" to 2 questions that the command asks before it kicks off. how do i do this? i thought it was something like this.. from inside the parent script:
sh test.sh << "EOF
Yes
Yes
[code]...
View 3 Replies
View Related
May 24, 2010
How can I run the following be run from a shell script, these are shell commands and mysql commands.
# mysql -uroot -ppassw
> use mysql;
> create database cacti;
> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipw';
# mysql -u root -p -b cacti < /usr/share/cacti/cacti.sql
View 2 Replies
View Related
Apr 3, 2011
In below program I want to add (as part of the valid_cmds string) the pwd (print working directory), lo (logout), and cd (change directory) commands. However when I add those into original program ;
char *valid_cmds = " ls ps df pwd lo cd";
they are not working I have the cout message huh?
Original source code is below code...
View 3 Replies
View Related