LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Bash arrays as Python lists (sort of)

Posted 08-08-2015 at 11:38 AM by HMW
Updated 08-08-2015 at 11:44 AM by HMW

If you have some experience with higher level programming languages (such as Python for instance), you have undoubtedly came across lists and arrays.

There are arrays in Bash too, but there is a pitfall when you delete items from an array in Bash; the index disappears with the item!

First, consider this example with a list in Python:
Code:
>>> myList = ['foo', 'bar', 'baz']
>>> myList
['foo', 'bar', 'baz']
>>> del myList[0]
...
HMW
Member
Posted in Uncategorized
Views 98 Comments 0 HMW is online now
Old

Make bash scripts wait in line until other instances have finished their job

Posted 08-06-2015 at 03:04 PM by the dsc (linux-related notes)
Updated 08-06-2015 at 06:34 PM by the dsc

Code:
#!/bin/bash
# It seems to work, but who knows. May have some terrible flaw and ruin your life. Your entire life.
#
# "${0##*/}" is the script name ("$0") stripped of any parameters ("##*/"), by the way.
#

if ls /dev/shm/${0##*/}-ticket* 2> /dev/null ; then
n=0
	while [[ -e "/dev/shm/${0##*/}-ticket$n" ]]; do
		n=$(( $n + 1 ))
done
touch /dev/shm/${0##*/}-ticket$n
...
Member
Posted in Uncategorized
Views 366 Comments 0 the dsc is offline
Old

Run your Ubuntu/Debian 64 bit system with kernel 4.1.3!

Posted 08-06-2015 at 04:44 AM by exton (Exton's Blog)

I have compiled yet another Ubuntu/Debian kernel for 64 bit systems. This time kernel 4.1.0-3-exton, equivalent to Kernel.org’s stable kernel 4.1.3.

What’s new in kernel 4.1? (Linux 4.1 is a major update to the Linux kernel)

READ MORE…
ExTiX Admin
Posted in Linux
Views 841 Comments 1 exton is offline
Old

Another Pointless Endeavour

Posted 08-06-2015 at 04:10 AM by Randicus Draco Albus

(Arch users might want to skip to the end and start yelling at me without reading my rant.)

While searching for something BSD-related recently, I accidentally stumbled upon Arch BSD. I knew doing a little research was a bad idea, but curiosity got the better of me. Their website, especially the forum, was very illuminating.

What is the mindset behind this project?
Quote:
So this is ... just "FreeBSD + pacman + different init"?
The answer?
Quote:
Also ArchLinux is
...
Senior Member
Posted in Uncategorized
Views 1046 Comments 11 Randicus Draco Albus is offline
Old

Running jnlp on Windows 7 as Administrator

Posted 08-03-2015 at 09:30 AM by MensaWater
Updated 08-03-2015 at 12:24 PM by MensaWater
Tags jnlp, san, windows7

OK - This isn't really Linux but is related to work I do as a System Admin wherein we use Cisco DCNM (Fabric Manager) to manage our Cisco MDS 9513 SAN switches. In addition to installing the Fabric Manager jnlp on our local Windows 7 workstations we install the Device Manager jnlp (element-manager.jnlp).

We did a recent upgrade to DCNM 6.2(5a) on our main Fabric Manager server (Windows 2008 R2) and upgraded the switches to 6.2(5) version of NX-OS. (One must run a version of DCNM/Fabric...
LQ Guru
Posted in Uncategorized
Views 2457 Comments 0 MensaWater is offline

  



All times are GMT -5. The time now is 12:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration