11-22-2009
Hi Jean-Pierre,
Thanks for the reply, your advice works but is in a loop and doesn't stop.
Any ideas?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
i would like to repeat a command in a shell sript (bash)
the script starts with a menu to choose a menu point to do something ....
on the end of the script i would like to restart the programm to choose the menu points on the beginning.
I would also make a sript that send... (2 Replies)
Discussion started by: scotty
2 Replies
2. Shell Programming and Scripting
Let say there is a module fileselection module written in c language which returns the file name. Is it possible to get the file name from the file selection module directly, I mean can we call a c function directly in shell script without doing executable. If possible then how it can be... (1 Reply)
Discussion started by: surjyap
1 Replies
3. Shell Programming and Scripting
Dear Friends,
I am on SOLARIS 9 (ksh)
I am working on a shell script that upload files with NcFTP with resume option. So far the script is working correctly. The script makes a list of files that need to be transferred and then launch the NcFTP command to start the transfer.
... (0 Replies)
Discussion started by: Aswex
0 Replies
4. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
5. Shell Programming and Scripting
Legends,
Can you please debug, what's wrong with the below code.
I am gettng unexpected token error
RebuldPF()
(
#Changing the directory to data directory where the pf exists.
cd /home/sandeep/files
#Listing the names of the Pricefiles for rebuilding
echo "The following pricefiles will... (6 Replies)
Discussion started by: sdosanjh
6 Replies
6. Red Hat
please help me in this script
shell script :1
***********
>cat file1.sh
#!/bin/bash
echo "this is first file"
function var()
{
a=10
b=11
}
function var_1()
{
c=12
d=13 (2 Replies)
Discussion started by: ponmuthu
2 Replies
7. Shell Programming and Scripting
I've 2 shell scripts viz., CmnFuncs.ksh and myScript.ksh.
1st script contains all common functions and its code is as below:
$vi CmnFuncs.ksh
#!/bin/ksh
RunDate()
{
....
....
export Rundt=`date +%Y%m%d`
}
2nd script is invoking the above one and I expect to use the RunDt variable... (8 Replies)
Discussion started by: njny
8 Replies
8. Shell Programming and Scripting
Hi Team -
I"m very new to Shell Scripting so I have a rather novice question. My forte is Windows Batch Scripting so I was just wondering what the Shell Script equivalent is to the DOS command %~n?
%~n is a DOS variable that dispayed the script name.
For instance (in DOS):
REM... (11 Replies)
Discussion started by: SIMMS7400
11 Replies
9. Shell Programming and Scripting
The file starts like this:
Directory: <path to the script>
Script: <script fife name>
#!bin/ksh
##Comments
<actual script>
What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
Discussion started by: remytom
4 Replies
10. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT SUSE
cddb-tool
CDDB-TOOL(1) General Commands Manual CDDB-TOOL(1)
NAME
cddb-tool - Get CDDB information
SYNOPSIS
cddb-tool parse file [-i|-d|-a|-t] [num|-c|-p]
cddb-tool template disc-id tracks
cddb-tool send [file] address
cddb-tool query server user host disc-id tracks
cddb-tool read server user host disc-id genre
cddb-tool help
DESCRIPTION
cddb-tool is a backend tool for abcde. It is passed information from cd-discid and uses it look up the CD title, artist, and track informa-
tion on the cddb database (http://freedb.freedb.org) on the internet.
COMMANDS
parse [file] option
Get data out of a cddb file (use "-" for stdin). Options (use one and only one):
id prints disc id
album prints album title
track num
prints title of track num
artist prints artist
category
prints category
cddbgenre
synonym for category
all parse file and dumps to stdout in a form sourceable by the shell
send [file] address
Mails file file (or stdin of no file specified) to specified address, using correct format. Category should be one of blues, classical,
country, data, folk, jazz, newage, reggae, rock, soundtrack, misc.
template [disc-id] [tracks]
Generates a template (empty) cddb file to stdout. The command line should be essentially the output of cd-discid.
query [server] [user] [host] [disc-id] [tracks]
Looks up disc on server (should be of form "http://host/cddb/cddb.cgi") remainder of command line is in the same form as that returned by
the cd-discid program. Uses wget, so if you need to use a proxy then just configure wget to do so. user and host will be used for identify-
ing ourselves to the CDDB server. Outputs response code and entries with matching CDDB entries, if successful, from the CDDB server.
read [server] [user] [host] [disc-id] [genre]
Dumps CDDB entry to stdout. File will contain an extra #CATEGORY= line, which leaves it a valid CDDB file but which will be recognized by
parse and send commands. Uses wget, so if you need to use a proxy then just configure wget to do so. user and host will be used for identi-
fying ourselves to the CDDB server.
help
Prints usage information.
AUTHOR
Nathaniel Smith <njs@uclink4.berkeley.edu>, maintained as part of abcde by Robert Woodcock <rcw@debian.org>. Manual page compiled from help
information by Robert Woodcock.
CDDB-TOOL(1)