Login  Register

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

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

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

Roshan
1294 posts
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
| More
Print post
Permalink

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

ErmanArslansOracleBlog
Administrator
5727 posts
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
| More
Print post
Permalink

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

Roshan
1294 posts
This post was updated on Nov 11, 2016; 4:33pm.
which text editor will you recommend me? dos2unix does not work
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

ErmanArslansOracleBlog
Administrator
5727 posts

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
| More
Print post
Permalink

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

Roshan
1294 posts
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