04-20-2012
Thanks buddy. I'll have a look at that over the weekend.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
How do i access individual characters in a string variable value .
say i have var=20060731.
How do i retrieve 2,0,0,6 etc chars separately.
Is there any Field separator in cut or awk to achieve the same?
Regards,
Suman (2 Replies)
Discussion started by: suman_jakkula
2 Replies
2. Shell Programming and Scripting
Hi,
Can anyone assist me on how to access a variable in a shell script from another script.
for ex,
Script-1
-------
#! /bin/sh
c=10
Where as, i would like to access the velue of variable c in another script 'Script-2'.
Thankyou to all in advance !! :b:
:b: (2 Replies)
Discussion started by: little_wonder
2 Replies
3. Shell Programming and Scripting
I hve a PL SQL block in unix where i define a variable "var_px_cat" and use it for taking count
SELECT COUNT(*) INTO var_px_cat
FROM A
WHERE B = '$CATEGORIE_ID';
Now how do I access the variable "var_px_cat" in unix after exiting from pl sql block. (3 Replies)
Discussion started by: theeights
3 Replies
4. Shell Programming and Scripting
hi all, i've a requirement like this.
i want to access the contents of an array declared in one script,which is a bash script, to a second script which is a perl script.
actually i want a sort of global variable which can be accessed in other script
like environmen variables and also i can... (3 Replies)
Discussion started by: tprayush
3 Replies
5. Shell Programming and Scripting
HI all,
How can i access a variable that is
defined in another file as: $$Name= "abhinav;
in my script.
The catch is that it has 2 $s behind it...
Thnaks
---------- Post updated at 10:36 AM ---------- Previous update was at 10:29 AM ----------
the file from which i have to... (0 Replies)
Discussion started by: abhinav192
0 Replies
6. Shell Programming and Scripting
Hi All,
I have some files in my directory, and i want to pull all data using for loop....I am using following code but getting error..!
for file in {file1, file2, file3, ..... filen}
do
L="$(tail -1 $file)";NUM=${L%%|*};DAT=${L##*|}
echo $NUM>>filedata.txt
done
Error:
tail:... (3 Replies)
Discussion started by: fidelis
3 Replies
7. Shell Programming and Scripting
Hi,
Would like to know the purpose and accessing of local variable as in below code snippet:
a=123
( a=321; )
echo "a = $a" #This will print 123
How to access local a variable which is assigned with value 321 ?. .. (3 Replies)
Discussion started by: IND123
3 Replies
8. Shell Programming and Scripting
Hi
I was trying to understand what ':-' means when used with variables
echo ${x:-10}
if
Thanks (4 Replies)
Discussion started by: zulfi123786
4 Replies
9. Shell Programming and Scripting
Hi,
GetName()
{
if
then
echo " Please enter the name: "
read Name
tempvar=0
while read line
do
if
then
tempvar=`expr $tempvar + 1`
echo $tempvar
... (10 Replies)
Discussion started by: rituparna_gupta
10 Replies
10. Shell Programming and Scripting
Hi Guys,
I need to access multiple directories whcih is following similar structure and need to copy those files in desitination path.
for eg :
if ]
then
cd ${DIR}/Mon/loaded
echo "copying files to $GRS_DIR"
cp * ${DIR}/Mon/
echo "Files of Monday are Copied"
fi
if ]
then... (5 Replies)
Discussion started by: rohit_shinez
5 Replies
LEARN ABOUT DEBIAN
muscan
MUSCAN(1) Museek Daemon Plus MUSCAN(1)
NAME
Muscan - File scanner for Museek
SYNOPSIS
muscan [-c <filename>] [--config <filename>] [-b] [--buddy] [-v] [--verbose] [-r] [--rescan] [-n] [--noscan] [-s <directory>] [--share
<directory>] [-u <directory>] [--unshare <directory>] [-l] [--list] [-h] [--help]
DESCRIPTION
Muscan scans paths & files to be shared by museekd(1). It creates a database of files, with meta-data for MP3 and OGG Vorbis files, if Vor-
bis support was compiled in. There are two available shares databases, Normal and Buddies-Only. Buddies-Only is an optional shares database
that, if enabled, is only accessible by the users you've chosen as "Buddies".
Before running muscan, you will need a configured museekd, which can be done with musetup(1) or fI>musetup-gtk(1), and add some shared
paths with either of the setup tools or with muscan(1).
OPTIONS
Muscan accepts the following options:
-c <filename>, --config <filename>
Use a different config file.
-b, --buddy
Select Buddy-Only Shares.
-s <directory>, --share <directory>
Add directory to shares.
-u <directory>, --unshare <directory>
Remove directory from shares.
-r, --rescan
Rescan shares.
-n, --noscan
Do not rescan shares.
-v, --verbose
Be verbose while scanning shares.
-l, --list
Display list of shared directories.
-h, --help
Display Help, version and exit.
EXAMPLE
To run a quick shares update, run:
muscan or muscan -b
To rescan everything, run:
muscan -r or muscan -b -r
Alternatively you use a different config file with:
muscan --config config.xml
FILES
~/.museekd/config.xml
The default location for the museekd config file.
~/.museekd/config.shares
The default location for the Normal shares database.
~/.museekd/config.shares.state
The default location for the active Normal shares database.
~/.museekd/config.buddyshares
The default location for the Buddy shares database.
~/.museekd/config.buddyshares.state
The default location for the active Buddy shares database's.
AUTHORS
Hyriand <hyriand@thegraveyard.org>
daelstorm <daelstorm@gmail.com>
SEE ALSO
mucous(1) mulog(1) murmur(1) muscand(1) museekcontrol(1) museekd(1) museeq(1) musetup(1) musetup-gtk(1)
daelstorm Release 0.2.0 MUSCAN(1)