Wednesday, July 23, 2008

cron not working as expected

if you make a crontab entry, you should restart cron to effect the changes

in my SuSe 11 64 bit my script is like below

# clear all crons
crontab -r

# add crom
crontab my.cron

# restart cron
service cron restart

root user Auto login in KDE ?

locate the folder

/opt/kde/kdm/config

edit file named kdmconfig


change Auto login user to root !! woooow that is it....

[ The above is not at all recommended, you can always try alternatives like sudo. This is something you can try while in a war ]

Auto start app in user login ( KDE )

in your home folder locate a folder names ".kde" There is folder inside "AutoStart" . put your scripts inside the folder. make sure that the script file has got appropriate permissions.

How to find script file directory from with in the script ?

#!/bin/bash

base=${0%/*}
current=`pwd`

cd $base
echo "The Path is `pwd`"
cd $current



http://www.unix.com/shell-programming-scripting/25946-how-find-script-file-location-inside-script.html