Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix scripting and Splus

Status
Not open for further replies.

SaraNS

Technical User
Oct 11, 2005
2
US
Hi, I am trying to figure out how to call splus functions from unix scripts. I know we can use
Splus BATCH runfile.s out

But what if runfile.s has several input arguments? Where can I specify them?

Thanks!

 
Does Splus prompt you for these arguments?
If so then do this:
Code:
#!/bin/ksh
# 
Splus <<EOF
arg1
arg2
arg3
EOF
Otherwise if these "arguments" are parameters, then do this:
Code:
#!/bin/ksh
# 
Splus arg1 arg2 arg3
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I need to pass some parameters from my unix script to the splus function. So i want to call splus inside the unix script.

In the second case, do you mean
Splus runfile.s arg1 arg2?

Thanks!
 
Hi

Try to put two dashes ( - ) before the script arguments :
Code:
Splus runfile.s [red]--[/red] arg1 arg2
This is the usual way to signal to an interpreter that the following arguments are for the executed script, not for the interpreter itself.

I hope it works with [tt]Splus[/tt] too.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top