LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

Bash functions to list and kill or send signals to process trees

Posted 04-01-2012 at 12:54 AM by konsolebox
Updated 07-28-2014 at 12:39 PM by konsolebox

These functions can be used in scripts or interactive shells to manipulate process trees. At least bash version 3.0 is needed. May also work with some earlier versions.

killtree - Creates a list of processes based from a parent process ID first then sends the signal to all of them synchronously.

killtree2 - Same as killtree but it doesn't create a list first. It immediately kills processes as it goes through every level.

killtree3 - This version kills...
Senior Member
Posted in Howtos
Views 1990 Comments 0 konsolebox is offline
Old

Intermediate C - getch-term

Posted 03-31-2012 at 04:27 AM by rainbowsally
Updated 04-09-2012 at 01:23 PM by rainbowsally (bum list bullets fixed)

Intermediate. That doesn't mean you have to be an intermediate C programmer to use this. It just means that it will probably be more understandable to those who are at about this level of programming skill.

Features:
  • getch()
  • simple ansi sequence to keycode converter
  • expandable

There are several versions of getch()-like functionalities on the net but none of them handle ansi sequences well (or at all) and none of them are very clear as to what they do or why.
...
Member
Posted in Uncategorized
Views 462 Comments 0 rainbowsally is offline
Old

Reconciling block devices by major number / minor number

Posted 03-30-2012 at 06:20 PM by anomie

Background

I had a task earlier this week to reconcile block devices between two directories. Simple - one can do so by reviewing major number / minor number, and then noting the match. Thus:

Code:
$ ls -l /dev/oracleasm/disks/ASMDISK2 
brw-rw---- 1 oracle dba 253, 267 Mar 21 13:58 /dev/oracleasm/disks/ASMDISK2

$ ls -l /dev/mapper/lun0015p1 
brw-rw---- 1 oracle dba 253, 267 Mar 21 13:52 /dev/mapper/lun0015p1
......
Senior Member
Posted in Uncategorized
Views 1348 Comments 0 anomie is offline
Old
Rating: 2 votes, 3.00 average.

Bottle Gourd AKA Lauki (in Hindi)

Posted 03-30-2012 at 01:17 PM by TheIndependentAquarius
Updated 07-04-2014 at 02:30 AM by TheIndependentAquarius

Notice: Spoon measurement : 6mlIngredients:
  • 1 spoon small yellow Mustard seeds (Aka Sarson in Hindi).
  • 1/2 spoon Cumin seeds (Aka Zeera in Hindi).
  • 8 Black Pepper corns (Aka Kali Mirch in Hindi).
  • 9 cloves Garlic (Aka Lesun in Hindi).
  • 2 medium Green chillies (Aka Hari mirch in Hindi).
  • 1 spoon Coriander powder (Aka Dhania in Hindi).
  • 1/4 spoon Turmeric powder (Aka Haldi in Hindi).
  • 1/2 spoon Salt.
  • 1 medium Onion.
  • 1 Bottle Gourd of length 25cm, and width 18cm.
  • 3 spoons Oil for frying.
...
Senior Member
Posted in Recipes
Views 8493 Comments 4 TheIndependentAquarius is online now
Old

Openshot Video Editor Questions Answered #1

Posted 03-30-2012 at 12:25 AM by stretchedthin

Having made some videos on Openshot before, I recieved a couple questions on how to do certain tasks in openshot. Question number 1, was how to add pictures on top of a moving video and size and position them as wanted. The other question was how to show multiple videos at the same time, in the same frame. As a bonus and because it fit in with the info being provided I also demonstarted how pictures or videos can be moved across the frame.

Here is the new Screencast here.
...
Member
Posted in Uncategorized
Views 286 Comments 0 stretchedthin is offline

  



All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration