12-31-2019
Please provide a lot more details, for example your operating system, version, and exact shell and version.
Also, if you provide your entire script, versus a tiny fragment of it, you will get better responses.
Happy New Year 2020!
10 More Discussions You Might Find Interesting
1. Programming
Hi All,
I am supposed to present the documentation for the PLSQL code (PACKAGES, PROCEDURE, FUNCTIONS) of my application. There are sufficient comments in my code. Has anyone written any Shell Script Utility which can parse the PLSQL code and generate some kind of document ( preferrably HTML not... (1 Reply)
Discussion started by: gauravsachan
1 Replies
2. Shell Programming and Scripting
Hi,
Lets say I have a script "ss" which does this
read abc
echo $abc
read pqr
echo $pqr
Now if I want to pass and argument to only "abc" how do I do it.
If I do
echo "somevalue" | ss, it does not prompt for pqr and its value comes out as blank.
Any help is appreciated
Thanks
P (6 Replies)
Discussion started by: patjones
6 Replies
3. Shell Programming and Scripting
Hi UNIX Gurus,
I have a SQL utility which fires DML statements against DB2 tables. Logic is to identify DML statements, put it into a file ($dml) and execute the job.
DML file can have more than 1 DML statements....but all of 1 type at a time.....either all UPDATE or all DELETE.
Job first... (2 Replies)
Discussion started by: ustechie
2 Replies
4. Shell Programming and Scripting
Hi. I wanted to create a Perl script which can take the outputs of a Perl script as it's input and temporarily store them in a document. Need help.
Thanks.:) (8 Replies)
Discussion started by: xtatic
8 Replies
5. Shell Programming and Scripting
Hi,
I am using solari 10 OS which is having bash shell.
I need a shell script which takes user home directory and name of the file or directory as a input and based on that copy the files accordingly to the other directory.
example:I hava a machine1 which is having some files in a... (8 Replies)
Discussion started by: muraliinfy04
8 Replies
6. Shell Programming and Scripting
Hi,
I am using solaris 10 bash shell.this might a small script but i am not much familiar with scripting.
My requirement here is script should prompt for users two opions like this
"please select either any one option makefile or make& build file".
if the user selects make file option... (2 Replies)
Discussion started by: muraliinfy04
2 Replies
7. UNIX for Dummies Questions & Answers
Got struck while trying to write a shell script which should automatically give input.
While running a script for eg: (adpatch.sh)
It Prompts for Multiple inputs like:
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP ? need to give... (2 Replies)
Discussion started by: abdmoha
2 Replies
8. UNIX for Dummies Questions & Answers
I have a unix command that prompts for 'y'. How do I run this from my shell script? (4 Replies)
Discussion started by: Sree10
4 Replies
9. Shell Programming and Scripting
Hi,
I have a shell script to install one of our products. It comprises of commands that are specific to the product installation. These commands require user inputs at different stages.
To avoid manual feeding of inputs every time, I tried using HERE document.
it is like-
#! /usr/bin
... (1 Reply)
Discussion started by: nishant.kansal@
1 Replies
10. Shell Programming and Scripting
Hi
I am trying to pass 2 input parameters from shell script to python API end point ,but not passing what i expected when print those inputs .Please advise
data.txt
" 7554317" ,xx5e1
" 7554317" ,xx96
" 7554317" ,xxd6
" 554317" ,xde
cat $sites/data.txt |sort |uniq >$sites/a.txt... (5 Replies)
Discussion started by: akil
5 Replies
LEARN ABOUT OPENDARWIN
tcl_pkgpresentex
Tcl_PkgRequire(3) Tcl Library Procedures Tcl_PkgRequire(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_PkgRequire, Tcl_PkgRequireEx, Tcl_PkgPresent, Tcl_PkgPresentEx, Tcl_PkgProvide, Tcl_PkgProvideEx - package version control
SYNOPSIS
#include <tcl.h>
CONST char *
Tcl_PkgRequire(interp, name, version, exact)
CONST char *
Tcl_PkgRequireEx(interp, name, version, exact, clientDataPtr)
CONST char *
Tcl_PkgPresent(interp, name, version, exact)
CONST char *
Tcl_PkgPresentEx(interp, name, version, exact, clientDataPtr)
int
Tcl_PkgProvide(interp, name, version)
int
Tcl_PkgProvideEx(interp, name, version, clientData)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter where package is needed or available.
CONST char *name (in) Name of package.
CONST char *version (in) A version string consisting of one or more decimal numbers separated by dots.
int exact (in) Non-zero means that only the particular version specified by version is acceptable. Zero means that
newer versions than version are also acceptable as long as they have the same major version number
as version.
ClientData clientData (in) Arbitrary value to be associated with the package.
ClientData *clientDataPtr (out) Pointer to place to store the value associated with the matching package. It is only changed if the
pointer is not NULL and the function completed successfully.
_________________________________________________________________
DESCRIPTION
These procedures provide C-level interfaces to Tcl's package and version management facilities.
Tcl_PkgRequire is equivalent to the package require command, Tcl_PkgPresent is equivalent to the package present command, and Tcl_PkgPro-
vide is equivalent to the package provide command.
See the documentation for the Tcl commands for details on what these procedures do.
If Tcl_PkgPresent or Tcl_PkgRequire complete successfully they return a pointer to the version string for the version of the package that
is provided in the interpreter (which may be different than version); if an error occurs they return NULL and leave an error message in the
interpreter's result.
Tcl_PkgProvide returns TCL_OK if it completes successfully; if an error occurs it returns TCL_ERROR and leaves an error message in the
interpreter's result.
Tcl_PkgProvideEx, Tcl_PkgPresentEx and Tcl_PkgRequireEx allow the setting and retrieving of the client data associated with the package. In
all other respects they are equivalent to the matching functions.
KEYWORDS
package, present, provide, require, version
Tcl 7.5 Tcl_PkgRequire(3)