General :: Bash Out Of Control ?

Jul 15, 2010

I created a system restore file.

code:

And hav tried out:

Code has been streaming past for ages. Longer than a fresh install!

I'm wondering if i've done something to create a cycle?

How and should i interupt it? If i ctl alt F7, will it take me back to Desktop?

View 6 Replies


ADVERTISEMENT

General :: Flow Control In Bash Pipe?

Jul 25, 2010

Two processes are communicating through a pipe: A | B. A is writing data faster than B is reading it in. Is there any way to have A limit its writing rate to match B's reading rate?

AFAIK the pipe will get full, and will make A's writing block, waiting for B to read in more data. But is there a way to limit A's writing rate before the pipe fills up? (In a way it's like having a pipe with a really small capacity, but as far as I know pipe capacity is a constant compiled into the kernel.)

Code:

EXAMPLE FOR CLARIFICATION

Right now the command is printing out the following in 1-second intervals:

But with flow control it should print out (again in 1-second intervals):

...since "date" would block on the writing loop due to the slow reading loop.

View 4 Replies View Related

Ubuntu :: Control Duplicates In Bash History?

Oct 19, 2010

I have tried a combination of the following lines in .bashrc to try and control duplicates in the bash history file:

export HISTCONTROL=ignoreboth
export HISTCONTROL=erasedups
export HISTCONTROL=ignoredups

[code]....

View 5 Replies View Related

Debian :: Control Lynx By Bash Script

Sep 10, 2010

I had tried to control lynx by bash script. I can use bash script to let lynx open an url. After that, I can't do anymore. I don't understand how to move the cursor or fill some textbox in the webpage opened by linx in bash script.

View 3 Replies View Related

Software :: Bash Input Control - Different Numbers ?

Mar 18, 2011

I'm making an bash script.

As input you can input different numbers from 1 to 3.

Depending from the input a text shows up.

View 2 Replies View Related

Programming :: Bash - How To Control Output Style?

Aug 24, 2009

For example,I have three paragraphs,as following:

I want to output it as following:

View 2 Replies View Related

Programming :: Bash Background - & - With Control Operators -&&

Feb 11, 2009

I have a set of files to copy and decompress, and want to do these operations concurrently with a script.

Manually it would be something like:

Code:

The single & is intended to background the processes, while the && is intended to execute the gzip process if and only if the cp completes successfully.

My script is:

Code:

When I run it, bash gets angry with the following error:

Code:

So what is the proper syntax to accomplish this?

View 1 Replies View Related

Programming :: Using A Variable To Control A BASH For Loop

Jul 3, 2009

I know of 4 different ways to use a for loop:

1. for I in {1..10}; do echo $I; done|

2. for I in 1 2 3 4 5 6 7 8 9 10; do echo $I; done|

3. for I in $(seq 1 10); do echo $I; done|

4. for ((I=1; I <= 10 ; I++)); do echo $I; done

I have a script which uses the 1st form of for loop. I'm trying to modify it to use a variable instead of a static hard-coded value in the section that controls the looping.of the for loop.

I've tried all different ways of quoting and escaping the variable, and the problem is that the quoting chars and escape char are being translated and passed into the loop along with the value stored in the variable.

For example, to change the start value of 1 to whatever value I want passed in through a variable:

Change:

I have tried: {{$a}..10} and {`$a`..10}, to have the variable evaluated first.

I have tried using the eval() function.

I have tried single and double quotes and the backslash escape character.

Nothing I've tried works. It's probably a syntax error.

View 14 Replies View Related

Fedora :: Bash - Binding A Function To Control-something Key Combo - F11

Aug 20, 2009

I want to set a key binding in bash for "history-search-backward" readline command to a combination of Control+some other key (I'm using 2 as an example), but I'm unable to do so. in fact, I'm unable to alter or add bindings to Control+key combinations.

After several tries my ~/.inputrc now looks like this

But it doesn't work and bind -p | grep "-2" gives nothing. If I try something without the control key:

I can search in the history by prssing the sequence C + - + 2.

bind -p gives control in C form, for example:

I've tried different formats in my inputrc:

But nothing works.

works if I press Escape followed by 2.

Setup:
Fedora 11:
Bash version 4.0.23(1)
GNU Readline 5.2 (according to the man page)

View 2 Replies View Related

Ubuntu :: Control Line In Volume In Bash/python?

Nov 14, 2010

How do i do to:1. Check if there is a audio source plugged in via line in?2. Control the volumeI want to do it through either bash or python script.

View 1 Replies View Related

Ubuntu :: How To Control Running Instance MPlayer From Bash Script

Nov 23, 2010

I am starting an instance of mplayer from a bash script, opening an audio stream:

Code:
mplayer [URL]

How do I do to control this mplayer instance from another script? I want to control volume and pause it from within the bash script. I know the commands for doing so from terminal, but once mplayer gets started from the script, how do I 'direct' the commands to that specific mplayer instance?

View 9 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

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

Fedora :: Lost Volume Control / Internet And Battery Indicator From Control Panel On F11

Jul 15, 2009

I feel little silly asking this, I accidently removed from my gnome panel my internet connection, volume control and battery indicator on F11. how can I add this back. It does not show up in the add to panel menu and the applications do not give you back the default feel.

View 1 Replies View Related

Ubuntu :: Control-c - Control-v - Copy And Paste Functions - Stopped Working

Jan 19, 2011

I don't know how this happened, but my keyboard copy and paste functions have stopped working. Oddly enough, I discovered that I can only copy and paste by using the third mouse button. Pressing down on the scroll wheel after highlighting text copies the text, pressing it again pastes it Ican still use the Edit-copy and Edit-paste menu functions.

I'm sure it has something to do with all the tinkering I have been doing with my desktop. I have been experimenting with CompizConfig and Cairo dock, changing my themes and things of this nature.

Ububtu 10.04.1
kernel 2.6.32-27 generic

View 7 Replies View Related

Hardware :: Control Cpu Fan Speed - No Fan Control With BIOS - Acpi - Lm-sensors

Dec 31, 2010

I cannot get any fan information from 'lm-sensors' or 'sensors', I tried to run 'pwmconfig' and got this:

Code:

Code:

But I have no tools to control the fan speed from 'acpi'. in particular '/proc/acpi/fan' is an empty directory.

There are no fan info/controls in BIOS either.

I believe the fans do not work as fast as they should and I am trying to find a way to fix this before the cpu cores are melted down from overheating.

Laptop information: HP Pavilion dv2500t

Code:

View 14 Replies View Related

Debian :: Sound Not Card Configured - Error 'Volume Control Did Not Find Any Elements And/or Devices To Control" - Driver

Feb 8, 2011

Laptop is Dell Latitude C600/C500 with Pentium III 850Mhz, 256Kb L2 Cache, 256MB RAM, ATI M3 video card, HD 20005 MB and sound card is EES Maestro 3i. After trying to do something with Windows 2000 which was installed on the machine, I decided to put Linux without keeping windows on the machine. First I try with Xubuntu (latest version) which was working but slowly, then I found that Debian could work fine on that machine. I have installed latest version 5.08 and was surprised how goodly old machine can work. I solved problems with screen resolution (change from 800x600 to 1024x768) but I couldn't find solution how to fix problem with sound.

Actually I don't have sound on the machine. I looked for a linux driver for that sound card and Dell is only providing windows drivers. Then I found that I can solve the problem with ALSA drivers but I couldn't find the easy way (or any way at all) to install drivers and to get back the sound. When I click on 'Volume Control' (top right corner of the screen) I get the message: 'Volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured.'

View 14 Replies View Related

OpenSUSE Hardware :: Energy-Control Out Of Control?

Dec 20, 2010

Since a while,the energy-saver shuts down the screeago,it happens after half an hour,but I didn�t set it up in that orders !It makes menervous,short time away from the comp,and soon the screen is dark!And the screensaver will not appear any more,too.I tried to enlarge the times in the energy-manager,created a new profile,switched off the laptopmode-service,nothing helps!And it seems,if there is no possibility to set one of the profiles up,they can only be changed,deleted or newly created.Is there really no place to force it to the required settings?Under the good old KDE3.5,it was no problem,to get it work like I want it to.My 64-bit system runs under openSUSE 11.3 and KDE 4.4.Is here any salvation for my nerves

View 3 Replies View Related

Slackware :: Thinkpad T500 Fan Control - Way To Control ?

Jun 2, 2010

I have had my thinkpad for just a few short months and, it must be that we are heading into summer, but I am starting to finally run into some overheating issues especially when compiling software for awhile, i.e. kernel.

My question would be, "Is it best to let the built in thermal management take care of the issue, and I just need to know what to tweak, or to put on a script solution such as the tp-fancontrol script?

The computer takes about 5-10 minutes to overheat and the message I get in /var/log/messages is "logger: ACPI group thermal_zone / action THM1 is not defined" then it shuts down.

So, any pointers in the right direction would be appreciated.

I am running slackware-current x86_64 on a Lenovo Thinkpad T500.

View 8 Replies View Related

General :: SSH Connection From BASH Script Stops Further BASH Script Commands

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

Ubuntu :: Mikrotik - Control Access To Bind Mac Address With Ip Address And Control The Band Width For Individual Connection

Feb 14, 2011

i have a xeon machine with ubuntu os machine specification is 3gb RAM 3 scsi hard drives each 73gb it have two ethernet cards one ethernet card is connected with adsl modem and the second is connected with LAN. now what is mikrotik doing for me is control access to bind mac adress with ip adress and control the band width for induvisual conection.

View 2 Replies View Related

General :: Remotely Control A Box From Mac?

Feb 13, 2010

I set all of my family members up with Linux Mint so that their computers would stop punching themselves in the face, but I'd like to be able to control those computers when my mom calls up and wants to know how to "put her favorites in the drop box." I've got Parallels with WinXP, and Ubunutu VMs, so my OS isn't really a concern (although I'd prefer to use OS X if there was a slick GUI app). What's the best or most practical approach to getting access to these computers from across the country?

View 3 Replies View Related

General :: Control The Interface To Set VFD On/off?

Jun 30, 2011

know the C program for controlling the interface to set VFD display on or off

View 1 Replies View Related

Fedora :: Volume Control Keys On Keyboard Don't Control Volume Anymore

Oct 29, 2009

Volume up, volume down and mute keys on the keyboard don't control the volume any longer.They worked before. Hitting the keys brings up a progress bar widget with the volume level unchangeable, set at 0% (which is not accurate at all).It looks like the key mappings or key bindings are working, but there is a disconnect with actual functionality. The volume cannot be changed or muted anymore from the keyboard.

This worked just fine in KDE on Fedora 11 before upgrading KDE components yesterday with Yumex. I am now using KDE 4.3.2 I don't think that it's a coincidence that it stopped working after doing an update.
I updated the kernel and nVidia drivers too, but this problem exists when I went back and tested with the previous kernel, so I don't suspect the kernel upgrade. No info in Xorg.conf about the keyboard. Is there a setting that I am missing?

Sound works just fine. I can listen to whatever source I like. This is not a problem with the sound drivers as far as I can tell.I just want to be able to control the volume with the keys on my Logitech Illuminated Keyboard, model Y-UY95. Is anyone else experiencing this?I can adjust the volume with Kmix 3.5 or GNOME Volume Control V2.1

View 7 Replies View Related

General :: How To Control Who Can Login The Host Via Ssh

Sep 21, 2010

I have a host that is using NIS for user authentication. Both user A and B are valid user. But how to only allow user A login the host via ssh?

View 1 Replies View Related

General :: Control Process From Web Site

Feb 11, 2010

What would be the best way to kill or start a process from a web site? Additionally, how could I get the output from the process and display it on the site?

View 7 Replies View Related

General :: Can't Control The Brightness With The MSI Hotkeys?

Feb 28, 2011

I have an Intel GMA 500 and driver support is iffy plus when I installed ubuntu netbook remix, it only runs in desktop mode not netbook mode. Plus I cant control the brightness with the MSI hotkeys.

View 12 Replies View Related

General :: F13 - How To Use VNC To Control User Desktop

Jul 26, 2010

I have fedora 13 64bit installed on the box I want to connect with vnc, I have tigervnc & tigervnc-server installed.
As my user I run:
vncserver
then I can connect to that box using: 192.168.1.2:1 but it is a different desktop?
How can I use vnc to control my user's desktop?

View 1 Replies View Related

General :: Access Control Through Squid?

May 28, 2010

I'm using squid for proxy server in FC6. I'm also using squidGuard for web-site access restriction. I want to do some exception now for website access. For example, squid user1 with ip 192.168.7.10/32 shoud not access facebook.com while all other squid users with ip 192.168.7.11/32, 192.168.7.9/32 and so on... can access facebook.com since facebook.com is not listed in squidGuard .db files

View 1 Replies View Related

General :: How To Control Bandwidth Base IP

Mar 24, 2010

I'm have a project about control bandwidth base IP (ex : 192.168.1.2 have 128kbps limit download, 192.168.1.3 have 64 ....) How I can do that? Software MasterShaper is good idea? I want solve this problem base linux kernel command TC without any third party software.

View 2 Replies View Related







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