NAVIGATION
Home
Gallery
Java
Linux
Web
Scripts And Utilities
Mobile And Sms
Misc
Contact
pixelWIKI
Nabaz Tag




<<

Linux Tips

Open an application on a specific desktop in KDE
kstart --desktop <number> --activate <application_to_run>

Read a file in bash
cat list.txt | while read line; do echo "$line"; done
find /tmp -name '*.txt' | while read line; do echo "$line"; done

Mounting vfat drives
/dev/hdc6   /data   vfat   user,exec,rw,owner,umask=000,uid=local,gid=users   1 2

this will give rwx to everyone for this share


MPlayer
record a stream to a file:

#! /bin/sh

if [ $# != 3 ] ; then
echo "Usage: $0 pls out length"
exit
fi

mplayer -playlist $1 -vo null -dumpstream -dumpfile $2 &
PID=$!

sleep $3m

kill -9 $PID


schedule this as a cron job with the parameters: playlist_file output_file length (minutes)
see [link]http://grimthing.com/archives/2004/05/20/recording-streaming-audio-with-mplayer/[/link]


Samba shares
Mounting a samba share under *nix
mount -t smbfs //server/share /mnt/mnt_point -o rw,gid=users,uid=chris,user,fmask=0770,dmask=0770,exec