on ‎2008 May 20 6:35 AM
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:-
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Neils,
Thanks for reply.
when i tried this command after took backup than it gave this message.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.