Problem in running scripts (344 Views)
Reply
Occasional Visitor
kirupakaran
Posts: 2
Registered: ‎08-04-2007
Message 1 of 7 (344 Views)

Problem in running scripts

[ Edited ]

Hi all,

Please someone tell me how to run script using nohup option in HP-Unix..

I am unable to use @ symbol in HP-unix ...

i usually run scritps in solaris as below..
eg:nohup sqlplus system/oracle @script.sql &

can anyone plese tell me how to run the same in HP-unix..

 

P.S. This thread has been moved from  Disk to HP-UX > languages. -HP Forum Moderator

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,001
Registered: ‎03-06-2006
Message 2 of 7 (344 Views)

Re: Problem in running scripts

What happens when you use "@"? This isn't a special char except it may be the line kill char. See "stty -a". Fix by:
$ stty kill ^u

Do you intend "@" to be anything other than a data char or part of a filename of command?
Please use plain text.
Occasional Visitor
kirupakaran
Posts: 2
Registered: ‎08-04-2007
Message 3 of 7 (344 Views)

Re: Problem in running scripts

Hi Handley,

Thanks for your response..

The problem is...

see we have an sql script in one of my partion..

i want to run the script..

what we usually do for another client using solaris..we will run the script by nohup option..

nohup sqlplus system/oralce @script.sql &

@ not a filename we use to call script that we have stored in current partion.

so please suggest me how to rubn scripts in HP-unix..


Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,001
Registered: ‎03-06-2006
Message 4 of 7 (344 Views)

Re: Problem in running scripts

>we will run the script by nohup option..
nohup sqlplus system/oracle @script.sql &

You are running the script "sqlplus" with the
arguments: system/oracle and @script.sql. Then putting it in the background with the output sent to nohup.out

>@ not a filename we use to call script that we have stored in current partion.

"@" is just a character and isn't anything special to a real shell.

>so please suggest me how to run scripts in HP-UX

sqlplus is your script. Unless your question is about sqlplus scripts?? (Which has nothing to do with nohup.)
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,001
Registered: ‎03-06-2006
Message 5 of 7 (344 Views)

Re: Problem in running scripts

>"@" is just a character and isn't anything special to a real shell.

Actually in a real shell, "@" is used as a parm, $@ and for file name generation.

The scummy C shell uses it for assignment.

None of these appears to be what you are trying to do.
Please use plain text.
Advisor
Sajeev_1
Posts: 12
Registered: ‎07-26-2007
Message 6 of 7 (344 Views)

Re: Problem in running scripts

use '\' before @...
nohup sqlplus system/oracle \@script.sql &

hope this helps..

Sajeev
Please use plain text.
Occasional Visitor
Hpuxuser01
Posts: 1
Registered: ‎03-12-2014
Message 7 of 7 (189 Views)

Re: Problem in running scripts

it works...your answer is still helpful and valuable. Thanks
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation