cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

user name<SID>adm Problem

Former Member
0 Likes
973

Hi friends,

I am working on AIX 5.2 O.S. ,oracle DB ,SAP 4.7.I have a serious problem when a am trying to login with user <SID>adm,

i get this error:-

    1. su - prdadm*

^M: Command not found.

^M: Command not found.

^M: Command not found.

^M: Command not found.

foreach: Words not surrounded by ().

% exit

% logout

#

And I am successfuly login with ora<SID> user name.Can anyone tell me what happen

Thanks & Regards

Gopal

Accepted Solutions (1)

Accepted Solutions (1)

georg_leffers
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Gopal,

I assume you have edited a file (login script?) on a Windows machine and then transferred it to the Unix server. This is typical for the different handling of CR/LF and the end of the line. Here you can see how a file looks like that was created with notepad on Windows and now is opened with vi on a Unix box.

this is a test^M

with a second line^M

and a third line^M

Regards, Georg

Former Member
0 Likes

Hi Georg,

Thanks for reply

Can you tell me now what i do to solve this problem.

Thanks & Regards

gopal

georg_leffers
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Gopal,

I see two simple ways (after you have identified the file with the ^M):

- open it with vi on the Unix box and delete the ^M

- on Windows use an editior which allows to save a file with line breaks in Unix style

Regards, Georg

nelis
Active Contributor
0 Likes

Hi gopal,

After you have identified the file/s(probably .sapenv* files) then you can use the following command to remove the CR characters:

tr -d '\r' < inputfile > outputfile

The input file being the effected file and the output file will be the one with the removed ^M. Just backup your old files first then you should be able to replace them with the output files exactly as they are named on the file system.

regards,

Nelis

Former Member
0 Likes

Hi Neils,

Thanks for reply.

when i tried this command after took backup than it gave this message.

    1. tr -d '\r' .sapenv_tegaprod.csh .sapenv_tegaprod1.csh*

Usage: tr [ -c | -cds | -cs | -ds | -s ] [-A] String1 String2

tr { -cd | -cs | -d | -s } [-A] String1

Can i use vi - .sapenv command to edit the file.

Thanks & Regards

gopal

Edited by: gopal kaushik on May 20, 2008 10:37 AM

nelis
Active Contributor
0 Likes

Hi gopal,

You forgot the < and > needed for redirection

eg.

tr -d '\r' < .sapenv_tegaprod.csh > .sapenv_tegaprod1.csh

You can also use Vi or any Unix based editor should work if you comfortable using it.

Regards,

Nelis

Former Member
0 Likes

Hi Neils,

Thanks for help .problem has solved.I gave you 10 marks for that.

Thanks once again

Regards

Gopal

Answers (0)