sleep: 0509-020 Specify time as a positive integer.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

sleep: 0509-020 Specify time as a positive integer.

Roshan
Hello Erman,

I need to execute a script on AIX test instance. Please find attached.

ACTT_AIX_Extract_Script_Instructions_v5.doc
AIX_Script_v2.sh

I am facing some issues as shown below;

Script Inturrupted. Exiting the script on a signal.
AIX_Script_v2.0.sh[41]: ^M:  not found.


Cleaning up the temporary files. Please wait ...


sleep: 0509-020 Specify time as a positive integer.
AIX_Script_v2.0.sh[45]: }^M:  not found.
AIX_Script_v2.0.sh[46]: ^M:  not found.
AIX_Script_v2.0.sh[48]: 0403-057 Syntax error at line 172 : `done' is not expected.
r12vision.mauritiustelecom.com(root)/home/test11.11.2016 #

Thanks,
ROshan
Reply | Threaded
Open this post in threaded view
|

Re: sleep: 0509-020 Specify time as a positive integer.

ErmanArslansOracleBlog
Administrator
it seems like ^M character in your script..
You probably copied & pasted it from Windows right?

Get rid of those characters for fixing this "not found" errors.

there is binary called dos2unix, which can do that. (if you have this program in your AIX env, you can use it)
Or you can clear those characters by an advanced text editor.

Reply | Threaded
Open this post in threaded view
|

Re: sleep: 0509-020 Specify time as a positive integer.

Roshan
This post was updated on .
which text editor will you recommend me? dos2unix does not work
Reply | Threaded
Open this post in threaded view
|

Re: sleep: 0509-020 Specify time as a positive integer.

ErmanArslansOracleBlog
Administrator

Get rid of those M characters roshan..


11 Kas 2016 19:25 tarihinde "Roshan [via Erman Arslan's Oracle Forum]" <[hidden email]> yazdı:
Now I am getting
AIX_Script_v2.0.sh[27]: ^M:  not found.
AIX_Script_v2.0.sh[28]: ^M:  not found.
AIX_Script_v2.0.sh[29]: ^M:  not found.
AIX_Script_v2.0.sh[35]: ^M:  not found.
AIX_Script_v2.0.sh[37]: ^M:  not found.
AIX_Script_v2.0.sh[40]: {^M:  not found.



Script Inturrupted. Exiting the script on a signal.
AIX_Script_v2.0.sh[41]: ^M:  not found.


Cleaning up the temporary files. Please wait ...


sleep: 0509-020 Specify time as a positive integer.
AIX_Script_v2.0.sh[45]: }^M:  not found.
AIX_Script_v2.0.sh[46]: ^M:  not found.
' is not expected.[48]: 0403-057 Syntax error at line 339 : `do
r12vision.mauritiustelecom.com(root)/home/test11.11.2016 #



How do I transfer as ASCII according to the word document?


If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/sleep-0509-020-Specify-time-as-a-positive-integer-tp1546p1548.html
To start a new topic under Scripting Bash / Sql / Perl, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: sleep: 0509-020 Specify time as a positive integer.

Roshan
Thanks :) It is working now. I was getting same error after removing ^M. In the error message, the line number was specified. It was some white spaces and comments. I got rid of those and it was O.k