Is there a way to get the "Original Job Stream" at run time? I know that you can get that from the Tivoi Console, but I would like to get it via a command line option. A tivoli job will start a unix script, I want to use the JobStream and Job names to set the environment for the unix script...
Well , I'm not sure what's not to like.
NUMBER=`ls Run_*.flag | wc -l | awk '{print $1}'`
But if you are trying to get rid of the space between BATCH_ & 7.
The wc -l command puts the space in your answer. It's possible that washing the string back thorugh the shell interpreter via...
How about something like this
#!/bin/ksh
set -A arr1 data11 data12 data13 data14
set -A arr2 data21 data22 data23 data24
set -A arr3 data31 data32 data33 date34
integer i=1
while (( i <= 3 ))...
I see at least to discussions going on here.
1. Software Job Titles and if you can use engineer in them.
2. If software creation is a formalized discipline and can be defined as a engineering pursuit.
My answer to #2 is I don't know, but people are trying...
There is way to do it.
Check out my FAQ in this forums FAQ.
Unix Scripting FAQ
ksh Inter-process comm's -- faq822-3992
Using Signal and TWO-WAY pipe to cd login shell from another script
JRjr
[morning]
I work for a large company. I have been involved in many large projects in my time here. One thing that I have seen happen over and over with these projects is months of analysis followed by a rush to develop. During this analysis, assumptions are made by non-technical people, or at best...
Does anyone know where I can get the javadocs for the IBM mq/jms classes. I am currently using MQ 5.3. I have lokked through "WebSphere MQ Using Java Version 6.0".
In that manual it states;
The Javadoc tool has been used to generate the HTML pages containing the specifications of the...
I made a few assumptions .
I assumed you file looked something like
Info: me.abc 123
Info: you.txt 456
Total: 579
I also assumed that you wanted to compare a couple of numerical values
First - I think you script is failing becasue you are using == instead of =.
== Numerical...
I am writting a JMS app for transfering files trough MQ. I put in a check for local host. I then check a prop file to determine which Queue Manager to conect to. If there is a LOCAL qmgr I do a BINDING connection, If no local queue manager I do a Client.
My questions are ,
Should I...
When ever I have this type of problem to solve I set a string first then eval the string. This will allow you to echo the value of the string before the eval is done.
CMDSTRG="${test1}_${test2}_hold=${basepath}/${test2}/${test2}/out/"
eval ${CMDSTRG}
I made some changes to...
What do I need on the client side to provide connection to a queue manager. Before 5.3 it was done by downloading the ma88. Is it just com.ibm.mq.jar, com.ibm.mqbind.jar and com.ibm.mqjms.jar? Or is there other things as well (not including what is provided by J2EE). Also what jre is...
This might give you a start
for the info in file f1
--------------
192.168.23.4 Hola
198.65.45.6 Mundo
--------------
This script
--------------------------------------------
typeset -i cnt=0...
Randal
Can you show an example of a .profile that you are using? Also do you suspect malicious activity or simple bone-headedness. The former is a continuous strugle the later can be easier to manage?
JRjr[morning]
Sorry , but I am a novice with JMS/MQ. Below is a snipet of an error log from an app . I am trying to get more infor on ERRORCODE: MQJMS1022 - Code: JMS-8402.
Also I could not find a reference to SessionAsyncHelper in Websphere MQ using JAVA OCT 2002.
Can any one point me in the right direction...
Here is another way that might work for you. This one dosen't use a loop. (ksh & AIX 4.3)
ls -1 *.C|xargs -I{} basename {} .C|xargs -I{} mv {}.C {}.cpp
JRjr[morning]
Check out my FAQ . I just posted it 6-Aug
Unix Scripting FAQ
ksh Inter-process comm's
Using Signal and TWO-WAY pipe to cd login shell from another script
How can I change the current directory from a script.
This question seems to pop up in the forum occasionally.
One way is to source the script into the current shell.
For example scriptname changedir
Then from the prompt
[color green]-> ...
From an XML rookie..
How do you embed a complete XML document inside another. I want to be able to nest XML documents and have them parsed by seperate processes. Is an unparsed entity the only way to do this?
JRjr
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.