global bash shell functionsview story

http://www.linuxquestions.org – Hi, I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted: Code: $ tail -n 3 /etc/bashrc echotm () {   echo "[`date`] $@" } $ echotm hello world [Mon Sep 13 17:15:28 HKT 2010] hello world $ cat a.sh #!/bin/sh echotm hello world $ sh a.sh a.sh: li (HowTos)

problem with sed over ssh.view story

http://nixcraft.com – ok, having the following problem: using vim editor in fedora 12 this scripts function is to replace "replace/word --> word replaced" in the file "testing" using sed over ssh . (HowTos)

Terminal colours and localeview story

http://www.linuxquestions.org – Hi everyone, I use slackware64 13.1. (HowTos)

getent does not work for usernames with numbersview story

http://www.linuxquestions.org – Hi All, Here is the output of getent, which I am finding strange. Code: [3001@CDCTGIMCLSA ~]$ sudo getent passwd 3001 Also the exit status is 2 But the user 3001 exists in the system. Code: [3001@CDCTGIMCLSA ~]$ cat /etc/passwd | grep 3001 3001:x:513:513::/home/3001:/bin/bash Also getent works well for usernames having alpabets. Code: [3001@CDCTGIMCLSA ~]$ sudo getent passwd test tes (HowTos)

Configuration (new user defaults) assistance needed.view story

http://forums.opensuse.org – I am working on setting up my home network to be centrally managed from my server (Opensuse 11.3). (Distributions)

need answers regarding case statements in bash scriptsview story

http://www.linuxquestions.org – while learning to write bash scripts, i decided to write some script that, given an integer as input, will tell you the square root of that integer (provided the integer in question is a perfect square). i have already done on using primarily if statements and a while loop. i decided that using a case statement would be a lot simpler and i would be able to make the script more functional. (HowTos)

Dropbox howtoview story

http://crunchbanglinux.org – NOTE: There is an updated Dropbox installation guide available on the wiki, see: http://crunchbanglinux.org/wiki/howto/h … up_dropbox-----First off, what is Dropbox? Well, according to the Dropbox website:Dropbox is the easiest way to share and store your files online.Having tried Dropbox myself, I have to agree that it is pretty sweet, and that is coming from a guy who runs rsync everyday. (HowTos)

ls -R without changing access time/dateview story

http://www.linuxquestions.org – I am using cygwin in order to test a bash script that uses the ls -R command. When I use this, the access date of the subfolders are changed, and I need them to remain what they were before the command was run. I don't have access to a legitimate Linux system, so I'm not sure if this is the fault of cygwin or the ls command. (HowTos)

Laptop automatic shutdown on low battery not workingview story

http://www.linuxquestions.org – Hi, I'm trying to make my system automatically shutdown once the battery level is low, but still without success. I've tried kpowersave, gnome-power-manager, kpower, klaptop but none of these worked for me. Well, I can't imagine I would be that stupid, but simply it doesn't work. (HowTos)

Why can't I even use bash?view story

http://www.linuxquestions.org – Hi, Anyone knows why can't I use bash? Code: $ bash To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. $ /bin/bash To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. thanks (HowTos)