General :: Get And Modify Thread_info For A Given Pid?
Jan 21, 2010How do I get thread_info for a given pid? Is there a way to modify PC of thread A in thread B so once thread A is scheduled, it will jump to the new instruction?
View 2 RepliesHow do I get thread_info for a given pid? Is there a way to modify PC of thread A in thread B so once thread A is scheduled, it will jump to the new instruction?
View 2 RepliesWhen we execute rm command then the target files or directories are permanently removed from our computer.
Is there any way my which when we execute rm command then the files or directories moved to Trash.
I need to modify a file that contains \tsus.fbfs.comappsdataStormLossProduction and replace the \tsus.fbfs.comappsdataStormLossProduction line with rm -f /mnt/nfsvol/PC/SLR/
I have tried:
But it provides an error on the second . I need to change this in place and not redirect to another file.
Is this possible? I have used sed and awk before but not extensively.
I am going to install the newest version of Ubuntu on my computer. I am currently running Vista. I would like to be able to dual boot. I understand the whole partitioning deal and booting from the cd but i am worried that doing so will overwrite my Master Boot Record for windows. Do I need to modify the GRUB2 after installation. Read many writeups but was hoping for some input.
View 1 Replies View RelatedIt is very important for my research work. For example mydata.txt:
id type x y z
1 6 0.474611 0.227223 0.583947
2 4 0.422894 0.22726 0.536791
3 5 0.448963 0.200148 0.560336
4 3 0.386478 0.207721 0.515293
5 6 0.371617 0.22361 0.582206
6 4 0.32123 0.222999 0.534782
How to change second column (type) whose values are 4 and 3 to value 1, so that mydata.text file become:
id type x y z
1 6 0.474611 0.227223 0.583947
2 1 0.422894 0.22726 0.536791
3 5 0.448963 0.200148 0.560336
4 1 0.386478 0.207721 0.515293
5 6 0.371617 0.22361 0.582206
6 1 0.32123 0.222999 0.534782
this is the output of df command on my system
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda8 18073924 4911628 12244184 29% /
udev 642140 308 641832 1% /dev
[code]....
I have set up a local YUM repository to install own modify packages om my clients.
View 2 Replies View RelatedHow can I modify my grub menu? I remember that on openSuSe was /boot/grub/menu.lst. But in debian there isn't it. In ubuntu is the same for modifying grub menu?
View 1 Replies View RelatedI m pretty new to Linux..! I've been given a task to modify network protocol(TCP in particular). So now i've to make few changes to the kernel which includes modifying few source files. So i want to know how can i go abt it. Till now i've explored various .c files of kernel(Eg.tcp.c,tcp_input.c etc etc)by referring few books. And now comes the important part of implementing it. So how exactly can i go abt it?? I went thru various threads like installing a kernel,compliling a kernel and other things. But i m not getting the exact sequence in which i should do it. I've installed fedora 10. But i cannot see any source files which i can modify. Where and how can i modify these files?
View 5 Replies View RelatedI want to use awk to modify file like this
origin:
A[]A[][]A[]A
modified:
A[]a[][]A[]A
but when I use
awk '{$2="a"; print $0}' inputfile
the output is
A[]a[]A[]A
where the [] means space. This is not what i want. I guess that is because the OFS is one space by default, but i really don't know how to solve this.
anyone know network packet editor for Linux? or modify network packet in wireshark?
View 1 Replies View RelatedWhy is the info in the (BASH_Profile) file different than (echo $Path). Is the Profile file just there to modify another file and not actually hold information?
View 1 Replies View RelatedHow to modify kernel to non-preemptive process scheduling only. Suggest any site that provides this kind of source code.
View 1 Replies View Relatedi want to change appearance for terminal in genome in ubuntu 9.10 permanently..like i want to add this line in white space each time when the terminal get started..
**********************************************************
Welcome to you
**********************************************************
how can i do this permanently
how to edit/create modules.dep.bin under initrd image. I actually want to insert a new module within the initrd image of suse 11 with sp1.
View 1 Replies View RelatedWhere could I modify the konsole terminal setting?
I would like change my default setting in the terminal.
My current terminal konsole is as below
usrname:machinename[line]: current_path :
I would like to shorten it because the current_path is too long and i find it quite messy...
Prior to upgrading some of my hardware I had 4 drives used just as storage. Now I'm trying to mount the drives as an LVM but I don't have enough slots to connect all the drives at once now b/c they use an outdated type of cable. I can connect three of the four. So, can I somehow move these to a new group, or remove the missing drive from the existing group?The error is:Couldn't read all logical volumes for volume group VolGroup.Couldn't find device with uuid 'yQtrVB-5jCk-vF10-05c2-AcDL-GNn1-ivdxxh'.
View 1 Replies View RelatedRelatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.
View 5 Replies View RelatedOn my Debian server I installed Samba for sharing directories in my local network. I know how to set access rights but I have a problem. I would like to allow an user (example "nobody") to create files or directories in a shared directory but to deny to modify or delete something.How can I do that?Second question, on a file, I know that we can set rights for "u", "g" and "o". But like the NTFS permissions, can we apply rights for each users?
View 3 Replies View RelatedI am trying to write a basic script on a linux box to do the following:change the timezone to UTC. I will need to make sure /etc/sysconfig/clock only has the following:
HWCLOCK=-u
SYSTOHC=yes
TIMEZONE=UTC
[code]....
I have a program I use, rrdtool. I need to modify a ds value on every file at the same time. However, using a wildcard (*) to try this operation of all files does not work and instead only updates one file.
Here is the command syntax:
rrdtool tune <file> --maximum traffic_in:100000000000 && rrdtool tune <file> --maximum traffic_out:100000000000
So, how can I do this on every file in the directory?
I have a file like below
n
p
1
1
50
w
I need to modify the first occurence of 1 byt some other integer.How do i do it using shell script?Can anybode help me out with that?
I was installing a software in my Ubuntu 9.10 and after installation completed it prompted the following warning:
Warning: Your PATH does not point to your newly installed /home/pc/Reflex/software/bin/esorex.
To ensure execution of the newly installed software you should modify your PATH.
Note that "esorex" is the executable file and by typing its name in the Terminal the program starts.
What should I write in my "bashrc" as PATH to that program?
If I want to modify my .bashrc file to change the HISTSIZE would the following command be for example; HISTSIZE=200? And if I want to change the DEBUG_LEVEL to 8 would the following command be; DEBUG_LEVEL=8?
View 3 Replies View RelatedI want to replace a pattern with other pattern in a textfile. But there are two same patterns,but I need two change only the second occurence. EG:
Text file is
aaaa=1
bbbb=2
cccc=3
dddd=4
[code]....
Now I want to change aaaa=x into some other entry.
Filename.txt
Code:
My First Line
My Second Line
::::While Loop:::
Program:
Code:
while read line
do
echo "$line"
done < Filename.txt
output:
Code:
My First Line
My Second Line
Is it possible to use for loop to get the same output. I have tried executing below code but I get every word of my file being displayed one below above.Is there any way I can modify the for loop code to get the output returned by while loop?
:::For Loop:::
Program:
Code:
for line in $(cat Filename.txt)
do
echo $line
done
output:
Code:
My
First
Line
My
Second
Line
how to modify (or get rid of) the sound (music) that is played when the computer starts ? (with ubuntu).
View 5 Replies View RelatedI want to modify a file like /etc/gdm/custom.conf from the shell or a script.
# GDM configuration storage
[xdmcp]
[debug]
[daemon]
AutomaticLoginEnable=true;
AutomaticLogin=username;
But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined), etc...
I didn't find anything except gconftool-2 but it do not explain how to modify other files. (there is a shema file there).
there isn't a program/script to achieve this, but can easyly be made for every config file, If someone do something like that, with a little database of which markup use each file, it could become really popular.
I am looking an neat trick / elegant solution to manipulate / modify hostname and set a variable to the value inside a script.I have figured what I want to do.I just want to know how to set the variable correctly ?
View 1 Replies View Relatedi've been wondering how do i know if some users create/modify/delete file/directory in linux, i've been using pyinotify in python script.this script like the example from the manual:
Code:
#!/usr/bin/python
import pyinotify, os, time
[code]...