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

Notices

Old

Getting Absolute Paths of UNIX Directories and Filenames in Shell Scripts

Posted 07-08-2011 at 04:05 AM by konsolebox
Updated 07-17-2011 at 10:11 AM by konsolebox
Tags bash, ksh, script, shell, zsh

This post is a compilation of the function getabspath() for different shells that can be used to get the absolute form of a path. The function accepts an argument path then returns the absolute form of it to the variable $__.

bash (3.0 and newer only)
Code:
function getabspath {
	local -a T1 T2
	local -i I=0
	local IFS=/ A

	case "$1" in
	/*)
		read -r -a T1 <<< "$1"
		;;
	*)
		read
...
Senior Member
Posted in Howtos
Views 1951 Comments 0 konsolebox is offline
Old

Libreoffice needs change

Posted 07-07-2011 at 01:11 AM by William (Dthdealer) (Whaling the FOSS)

OpenOffice.org and LibreOffice are massive ( and possibly monolithic ) suites of software. In some ways this makes them just as bad as Microsoft office, but they gain back their credit for being designed with user priority over commercial priority. I love being able to use a fully featured office suite that is more than a match for Microsoft Office, but most of the time I try to avoid having to use the suite because it is large, slow and sometimes unwieldy.

My first and foremost...
Member
Views 899 Comments 2 William (Dthdealer) is offline
Old

Auto start a service at boot up.

Posted 07-06-2011 at 11:32 PM by brave heart

List all service name started at boot time
Code:
chkconfig --list
Turn on linux service at boot time
Code:
chkconfig httpd on
Turn off linux service at boot time
Code:
chkconfig httpd off
or
Code:
chkconfig --add snmpd
Code:
chkconfig --level 345 snmpd on
Member
Posted in Uncategorized
Views 813 Comments 0 brave heart is offline
Old

RuntimeError: maximum recursion depth exceeded

Posted 07-06-2011 at 12:55 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 07-10-2011 at 07:49 PM by rocket357

Ok, so this is another philosophy post (sorry for the misleading title...if you're playing around with recursion in Python I should hope you know how to fix the error message in the title =)

Anyhow, I posted yesterday about determinism and free will. Today I'm going to follow up with the mind. In contemporary knowledge, the mind is roughly equivalent to the "meta-brain"...the activity that takes place "within" the brain. Since the dawn of time people have wondered...
Member
Posted in Uncategorized
Views 4822 Comments 2 rocket357 is offline
Old

The journey in Linuxville continues

Posted 07-06-2011 at 09:42 AM by ichase

December of 2010, I wrote my first blog about my thoughts in choosing a distro. It was called Linuxville
I read this blog again just recently and realized how much I have learned since writing it. I by no means consider myself an expert as in the grand scheme of things I have still only scratched the surface of the many things there are to learn when it comes to Linux.
In my original blog, I mentioned that I would like to eventually live in the Arch house but was intimidated by the...
Member
Posted in Uncategorized
Views 359 Comments 0 ichase is offline

  



All times are GMT -5. The time now is 04:19 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