Sponsored Content
Full Discussion: Korn Shell Wrapper script
Top Forums Shell Programming and Scripting Korn Shell Wrapper script Post 302270675 by methyl on Monday 22nd of December 2008 01:38:35 PM
Old 12-22-2008
1) Count how many different parameters you have. It's not clear from your post.
2) Pass them as $1 $2 $3 $4 ... from the wrapper script.

Code:
e.g. Call 
wrapper_script server_name dest_dir source_dir dest_server user_id list1 ....

e.g. Part of wrapper_script

#!/bin/ksh
server_name="$1"
dest_dir="$2"
source_dir="$3"
dest_server="$4"
user_id="$5"
list1="$6"


script1 "${server_name}" "${dest_dir}" "${source_dir}" "${dest_server}"

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple su - in Korn Shell script

i am trying to do something like this : #!/bin/ksh # Change to the userid user1 su - user1 #Issue the command to change directory and list files cd /home/user1/ ls -lrt exit #Come out of the user1 to root again #change to user 2 su - user2 cd /home/user2/ ls -lrt... (2 Replies)
Discussion started by: furrari
2 Replies

2. UNIX for Dummies Questions & Answers

korn shell script

hello., i have 2 files.. 1 file is in this folder /home/test/ssk/DSA.WLG.20050713211544.20050710.20050713211544 (this part) other file is in this folder /home/kk/dev/DSA.WLG.20050711210100.20050710.20050711210100 ... (1 Reply)
Discussion started by: pavan_test
1 Replies

3. UNIX Desktop Questions & Answers

korn shell script

hi all i am writing the korn shell script. i have a SQL script which gives me the folowing output DSA.WLG.20050713211544.20051025.20050713211544 28991 1130198400 DSA.WLG.20050713211544.20051025.20050713211544 25881 1130198400 DSA.WLG.20050711210100.20051025.20050711210100 25881 ... (3 Replies)
Discussion started by: pavan_test
3 Replies

4. AIX

Help with Korn Shell script

I have this Korn shell script that runs via a cron entry. It runs in a loop "watching" a specific file system for files with a certain name. The file system that it is watching is an upload file system for an FTP server. When files that are the correct name come in, it takes the extension of the... (1 Reply)
Discussion started by: heprox
1 Replies

5. Shell Programming and Scripting

Korn Shell Script

I have to solve some exercises in Korn Shell, but i'm having some problems. For example: Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written. I... (3 Replies)
Discussion started by: burm
3 Replies

6. Homework & Coursework Questions

Korn Shell Script

1. The problem statement, all variables and given/known data: Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written. 2. Relevant commands, code,... (3 Replies)
Discussion started by: burm
3 Replies

7. Shell Programming and Scripting

Korn shell script comparison

I have a scenario to implement in Korn shell script. Here it is.. I need to compare two values to see whether they are same or not. The issue is that the values coming in for comparison can be a string or an integer which can be determined during run time only. Which korn shell comparison... (1 Reply)
Discussion started by: vani123
1 Replies

8. Shell Programming and Scripting

Wrapper Script in Perl Or shell

Hello, My requirement is based on Oracle where we run a perl script and it asked some questions.I want to write a wrapper which will answer all these questions. How is it possible. Thanks (16 Replies)
Discussion started by: cotton
16 Replies

9. Shell Programming and Scripting

pass null value to sql script from korn shell script

There are 4 parameters that I have to pass from korn shell to sql script. 1) I have to check if $1 , $2 , $3 and $4 are null values or not . How can I do that ? 2) Once its determined that these values are null (in the sense they are empty) how can I pass null values to sql script... (11 Replies)
Discussion started by: megha2525
11 Replies

10. Shell Programming and Scripting

Shell Script and Progress Bar or GUI Wrapper

Hi, I have shell script that I am running under Ubuntu as root. Is it possible to hide the command window and show the user some sort of progress /random progress bar / or other form of GUI interaction? On MAC, I have been using Platypus but on Ubuntu I am not sure what to do. (4 Replies)
Discussion started by: naveedanwar4u
4 Replies
cds(1m) 																   cds(1m)

NAME
cds - A dcecp object that represents a Cell Directory Service server SYNOPSIS
cds disable server_name cds help [operation | -verbose] cds operations cds show server_name ARGUMENTS
The name of the cds operation for which to display help information. The name of one CDS server running somewhere in the local cell. Specify the server name in one of the following formats: /.../cell_name/hosts/host_name/cds-server /.:/hosts/host_name/cds-server DESCRIPTION
The cds object allows some low-level control over a CDS server in the local cell. Using it, you can disable a running server, which causes it to shut down gracefully. This command will also display a limited set of the attribute and counter information currently known to the specified server. ATTRIBUTES
The number of times the server failed to update a child replica. The date-time stamp representing when the current server started. The number of crucial replicas known to the server. The skew time allowed the server. The list of clearinghouses known to the server. The number of read operations processed by the server since it started. The number of times the CDS server had problems with the cell Security Service. The number of skulks completed by the server since it started. The number of skulks initiated by the server since it started. The number of times the lookup path was broken during a server operation. The number of write operations processed by the server since it started. OPERATIONS
cds disable Disables the specified CDS server. The syntax is as follows: cds disable server_name The specified server must be running somewhere in the local cell, and you must have the privileges to access that machine. This operation returns an empty string on success. Privileges Required You must have dwc (delete, write, create) permissions on the namespace entry of the server. Example dcecp> cds disable /.:/hosts/blech/cds-server dcecp> cds help Returns help information about the cds object and its operations. The syntax is as follows: cds help [operation | -verbose] Options Displays information about the cds object. Used without an argument or option, the cds help command returns brief information about each cds operation. The optional operation argu- ment is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option to display detailed information about the cds object itself. Privileges Required No special privileges are needed to use the cds help command. Examples dcecp> cds help disable Disables the specified CDS server. show Returns attribute information about the named CDS server. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> cds operations Returns a list of the operations supported by the cds object. The syntax is as follows: cds operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the cds operations command. Examples dcecp> cds operations disable show help operations dcecp> cds show Returns attribute information about the specified CDS server. The syntax is as follows: cds show server_name The attributes returned mostly represent counter information, which can be used to help isolate a problems with a CDS server. The order in which the attributes are returned is fixed within CDS. Privileges Required You must have r (read) permissions on the namespace entry of the server. Examples dcecp> cds show /.:/hosts/blech/cds-server {Creation_Time 1995-10-11-10:06:31.434-04:00I-----} {Future_Skew_Time 0} {Read_Operations 141384} {Write_Operations 3589} {Skulks_Initiated 278} {Skulks_Completed 278} {Times_Lookup_Paths_Broken 0} {Crucial_Replicas 0} {Child_Update_Failures 0} {Security_Failures 0} {Known_Clearinghouses /.../gumby1/blech_ch} dcecp> RELATED INFORMATION
Commands: cdsd(1m), dcecp(1m), dcecp_cdsclient(1m). cds(1m)
All times are GMT -4. The time now is 03:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy