Visit Our UNIX and Linux User Community


mml scripts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mml scripts
# 8  
Old 07-28-2009
The only way I can test this and come up with the results you're seeing "terminator not found" is by using csh which is different than the code you've given. Please post the exact code you're using. You might try removing the hyphen from the beginning of the here document since it doesn't appear to be supported with csh.
# 9  
Old 07-28-2009
Why not scripting your interactive login with expect?
# 10  
Old 07-28-2009
Quote:
Originally Posted by tomjones
yes please
--------------------------------------------------------------------------------

i am writing an mml script below

#!/bin/sh


start.sh mml

login abcd piss internal

set serv=abc

set term=internal


After the start.sh mml runs i get the prompt

% start.sh mml
MML>>>

at this prompt i need to put in

"login abcd piss internal"
"set serv=abc"

"set term=internal"

but i dont know how to make this work in the script above
# 11  
Old 07-28-2009
Were you intending on re-posting your original question? I was expecting to see the code that had the here document that was generating the "terminator not found" message. Also, using expect might also be a good solution if there is any logic you need to apply during the interactive portion of the script.
# 12  
Old 07-28-2009
Quote:
Originally Posted by tomjones
--------------------------------------------------------------------------------

i am writing an mml script below

#!/bin/sh


start.sh mml

login abcd piss internal

set serv=abc

set term=internal


After the start.sh mml runs i get the prompt

% start.sh mml
MML>>>

at this prompt i need to put in

"login abcd piss internal"
"set serv=abc"

"set term=internal"

but i dont know how to make this work in the script above
#!/usr/bin/csh

start.sh mml << EOF
login abcd piss internal
set serv=PPS
set term=internal

EOF


with the code above it works only to the start.sh mml.
the input to the mml which is

login abcd piss internal
set serv=PPS
set term=internal

doesnt work
# 13  
Old 07-28-2009
Quote:
Originally Posted by tomjones
#!/usr/bin/csh

start.sh mml << EOF
login abcd piss internal
set serv=PPS
set term=internal

EOF


with the code above it works only to the start.sh mml.
the input to the mml which is

login abcd piss internal
set serv=PPS
set term=internal

doesnt work

Assuming you're using this code:

Code:
#!/usr/bin/csh

start.sh mml  << EOF
login abcd piss internal
set serv=PPS
set term=internal

EOF

Quote:
doesn't work
means "terminator not found"? Can you switch to bash instead of csh for this segment of code? If you're getting some other problem, can you give more details than "doesn't work"?
# 14  
Old 07-28-2009
Quote:
Originally Posted by peterro
Assuming you're using this code:

Code:
#!/usr/bin/csh

start.sh mml  << EOF
login abcd piss internal
set serv=PPS
set term=internal

EOF

means "terminator not found"? Can you switch to bash instead of csh for this segment of code? If you're getting some other problem, can you give more details than "doesn't work"?
it works only in CSH

other give the response

ksh: start.sh: not found

Previous Thread | Next Thread
Test Your Knowledge in Computers #777
Difficulty: Easy
The Fourier transform can be formally defined as an improper Riemann integral.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Calling multiple scripts from another scripts

Dear all, I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out. Here is the snippet:- #!/bin/bash HSFILE=/root/Test/Components.txt LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies

2. Shell Programming and Scripting

Calling scripts from with scripts

Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs. My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies

3. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

4. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

5. Shell Programming and Scripting

Running scripts within scripts from cron

Hi all, I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so. 0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log The checkstatus.sh scripts looks like this. ... (4 Replies)
Discussion started by: sirbrian
4 Replies

6. Shell Programming and Scripting

Help with Script using rsh and scripts within scripts

Hi, I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies

7. UNIX for Dummies Questions & Answers

Profile scripts versus rc scripts....

what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies

8. Shell Programming and Scripting

How To Run Mml Command From Unix Script

Dear All I want to run some MML command on my node from my unix server. I am able to get mml prompt but after that my script is stop at mml prompt. No commnad is executed on mml prompt. Kindly help me out. Regards Jaydeep (0 Replies)
Discussion started by: jaydeep_sadaria
0 Replies

9. Shell Programming and Scripting

Calling expect scripts from other expect scripts

Hi, First, let me explain the issue I am trying to solve. We have a lot of expect scripts with the duplicated send/expect commands. So, I'd like to be able to extract the duplicated code into the common scripts that can be used by other scripts. Below is my test where I am trying to call... (0 Replies)
Discussion started by: seva
0 Replies

Featured Tech Videos