Fedora :: Bash Cannot Set Terminal Process Group
Nov 17, 2009
Urgent: on reboot, the Fedora 11 lower bars reach about 70-80%, then I get the message:
/dev/mapper/VolGroup-lv_root: (There are 22 inodes containing multiply-claimed blocks.)
File /home/burnie/.thumbnails/normal/[bunchofhexits].png (inode #15826, mod time Mon Nov 2 04:24:26 2009) has 13 multiply-claimed blocks, shared with 1 file:
[code]....
Just in case this is relevant, yesterday I spent several hours attempting (and failing) to build IcedTea in order to run a Java web service that required it. After the failure occurred, I exited Linux and went to Windows Vista to run the web service, and found that Vista cannot support 64-bit Firefox, so I rebooted to Linux, and ran make clean on the Iced Tea installation, which balked because a stamps directory could not be deleted because it was not empty; I followed this by make distclean which made the same complaint. So I manually deleted the files in the stamps subdirectory, ran make distclean "cleanly", and then rebooted to reach my current very unsatisfactory state.
View 6 Replies
ADVERTISEMENT
May 24, 2010
I have a text file that currently has around 150 000 usernames in it. I need to somehow group them into smaller groups of 1000 and then add that value into the DB. for example user xzy group 1 (hopefully the groups will be digits incrementing)
[Code]....
how to search for 1000 then assign them group 1 and then 1001-1999 to group 2 etc.
View 3 Replies
View Related
Jan 1, 2010
I have got a bash script i have been playing with I need to start a process then close terminal with in the script but leave program running ?
Code:
#!/bin/bash
sudo ifconfig eth0 down
sleep 5
sudo ifconfig eth0 up
firefox & exit
View 9 Replies
View Related
Aug 4, 2009
Terminal will not open
Error message: There was an error creating the child process for this terminal
Got this after doing a update to testing repo; to try to fix another issue with my media player sound not working.
Solved
The_Source_HIM
Just add yourself to 'tty' group and relogin
View 5 Replies
View Related
Apr 20, 2011
I wanted to change my $PATH and my prompt, had some trouble with setting and exporting the variables and found that the shell was csh instead of the bash which I expected. I worked around it by creating a .cshrc which calls bash but don't know what caused the change. I've got as far as seeing that the gnome-terminal command kicks it all off from the Applications>System Tools menu but what happens between there and the terminal popping up?
View 3 Replies
View Related
Apr 5, 2010
Can we just put all the processes in one group and kill that group? Is there any other way to do this?
View 3 Replies
View Related
Feb 18, 2011
How to kill a process initiated by another user, who is in same group as me?
View 1 Replies
View Related
Oct 31, 2010
I need to remove (temporarily) a process from a particular group thru code. I have not found any function call that can do this.
View 2 Replies
View Related
May 30, 2009
I just installed ushare on Fedora 10 (yum install ushare is all it took to do), and followed the guidance then to configure sharing for an Xbox 360, [URL] the code below. Notice the last line...due to stopping process in the terminal via Ctrl+C. It appears to me, based on this ending UPNP sharing, that the first line will need to be run each time want to turn on sharing, right? I thought this would simply configure ushare sharing one time, and possibly intiate some sort of file sharing service on each boot, but this appears not to be the case. If I am right, does anyone know how I can develop a script to run at boot to allow ushare to open sharing and keep it open?
[Code]....
View 3 Replies
View Related
Jul 6, 2010
I have written a tiny script which switches between 2 CPU frequency throttling governors. Now I need to assign it to a shorcut key though "Preferences->Keyboard Shortcuts".
Here is the script:
Code:
#!/bin/bash
if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` = 'ondemand' ]
then
[code]....
As you can see this script involves sudo. I know that usually running commands with sudo requires "Run in Terminal" option for a shortcut, but in "Keyboard Shortcuts->Add" there is no option to run command in terminal. When I double click on the script and choose "Run in Terminal", then it functions as it should. How can I make this script execute by doing "Run" and not "Run in Termnal"?
View 2 Replies
View Related
Dec 3, 2009
For some reason my terminal now opens as -bash-4.0$ and will not let me login as any user.Is there anyway to fix this? It's very annoying and I've never came across it before.
View 4 Replies
View Related
Feb 29, 2016
I mainly use debian jessie , recently i have installed daragora as my second os to get a feel of gnu/linux . the problem is that dragora uses bash , and it's commands are different from debian jessie terminal is there a way that i can use the same commands here in dragora?
View 4 Replies
View Related
Dec 10, 2010
Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"
In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.
P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!
View 9 Replies
View Related
Jun 5, 2011
I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:
-bash: ls: command not found
Even the basic commands don't work... just cd <directory> and those things works
View 9 Replies
View Related
Jun 1, 2010
I Have an script like
./bang 1
./bang 2
./bang 3
./bang 4
[code]...
and i wanna execute him in groups of 3 , i mean he execute bang 1 , bang 2 and bang 3 after it finish the next 3 commands it will be executed and so on , in groups of 3.
View 3 Replies
View Related
Jul 27, 2010
I've spent the entire day trying to install virtualbox. My dkms is newest version, my gcc is newest version, my headers seem to be in order, and it still won't install. BUT that's not my problem. As I was trying repeatedly to install, I noticed it said "group vboxusers already exists". So brilliant me, thinking that was my problem, went and deleted it, and then headed to synaptics to uninstall virtualbox (again!) so that I could try to install it (again!), only to find myself locked out.
The exact message I get is
Code:
Unable to get exclusive lock
This usually means that another package management application (like apt-get or aptitude) is already running. Please close that application first.I've worked really hard on this install, and don't want to start over with a fresh one unless it's absolutely necessary.
View 3 Replies
View Related
Apr 28, 2011
I've noticed something, and hoped there was a work around.when I write a simple bash script, and run it, if I close the terminal i ran the bash script inside, the bash script stops. What are the solutions for this? Basically I want to run my bash script and close the terminal, keep the bash script running.
View 6 Replies
View Related
Jun 26, 2010
I am having a problem identifying a BASH script process that I run at startup.When I use "ps -e", I see a few BASH and SH processes running, but I don't know if any of these are my script. Is there a way to give a BASH script a specific name when run that I could see as the process name. That would make it easier to identify and kill when needed.
View 3 Replies
View Related
Nov 23, 2009
When I open the terminal, I get this: Code: bash-4.0$ instead of getting "username@hostname" Funny thing is that when I do a "su - " it shows root@hostname ~
View 3 Replies
View Related
Aug 23, 2010
I'm trying to write a script that involves storing a specific PID in a variable. I've got as far as: -
Code:
$PS_OUTPUT=ps -elf | grep <process name> | awk '{print $4}'
This stored the PID of the grep itself and the actual process I want. The output of
[code]...
View 6 Replies
View Related
Nov 25, 2010
file allids consists of 300,000 rows, each containing a 5-7 digit numeric id. file newids consists of 20,000 rows of id's. How do you explain the following timings? time: 0.07s:
Code:
diff <(sort allids) <(sort newids)
time: 1.6s:
[code].....
View 4 Replies
View Related
Nov 11, 2010
I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process
View 2 Replies
View Related
Apr 1, 2010
pretty simple. how would you background a process from a script and get its process id at the same time?
View 6 Replies
View Related
May 27, 2009
I am new to scripting and been working on this bash script for awhile now. I been researching this problem, but I can't seem to find a solution. I was wondering if someone could please help me out. Here is my script:
#!/bin/bash
NO="ps -ef | grep NO | grep -v grep"
NOWC=`ps -ef | grep NO | grep -v grep | wc -l`
[code].....
I cannot get this script to run the "ps -ef" command on the client. It get its value from the host machine that I am running this script from. I need this command to execute on the client. When I run the command (ps -ef | grep NO | grep -v grep) on the client, I get something back. Here is what I get when I try to debug the script.
XX# ./test_ps5.sh XXXXX
+ NO='ps -ef | grep NO | grep -v grep'
++ ps -ef
[code]....
View 5 Replies
View Related
Dec 13, 2010
I have a file opened in vi running in a terminal(xterm), if I directly closes the terminal without first closing the file then I can see the vi still running in the background(ps x). Now is there any way to attach that process i.e. vi to some other terminal so that I can continue my work on the file. I have also tried fd command but it fails.
View 4 Replies
View Related
Sep 18, 2010
There were a ssh session, but client side crashed and after reconnect, here is still pseudo terminal and process attached to it. Is there any way how to reattach the pts or reattach process to another terminal? (Please ignore screen or another terminal multiplexer, as long as I'm just curios if there is any solution of this situation, cause I use screen).
View 8 Replies
View Related
Jan 23, 2010
(yes a,vim a,copying data etc) via any terminal .please dont give me kill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 Replies
View Related
Jan 22, 2010
how to send any pause process into running condition from one terminal to other terminal in linux!
View 1 Replies
View Related
Sep 12, 2010
How can I send a job running in one bash instance to another? I tried disowning the job, and resuming it with a "fg %cmd" from another terminal, but that doesn't work.
View 3 Replies
View Related
Mar 3, 2011
I am trying to create two processes , a parent process and a child process where each of them have their respective CLI. At any point, the user should be able to switch between the CLI of the parent and child processes. I could find three possible approaches to the problem
1) fork the child process into a new terminal
2) activate the CLI of only the process which is currently in the foreground.
3) Write a script (.bashrc triggers this script on login) to start the two processes separately in two different terminals, such that the second process is triggered once the first process reaches a certain stage in execution.
The first approach probably requires the controlling terminal of the child process to be changed. Can this be achieved ? The second approach will require for the process (parent/child) to itself to know everytime it is put in background / foreground so that its CLI operations can be suspended/resumed respectively. Is this possible? Can a script start programs in a new terminal other than the one it is running in?
View 2 Replies
View Related