issue on CLEAR.FILE
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
issue on CLEAR.FILE
All,
I just tried to clear the log by using CLEAR.FILE command as below.
. ./dsenv
bin/uvsh
logto <my project>
LIST DS_JOBS Change_Capture_Test
got the job id
CLEAR.FILE RT_LOG<above jobid>
>clear.file RT_LOG2451
CLEAR.FILE attempt on read-only file.
** CLEAR.FILE processing aborted. **
it seems like RT_LOG2451 file doesn't have the write permission. am i correct? if yes, how to apply chmod command for this file?
I just tried to clear the log by using CLEAR.FILE command as below.
. ./dsenv
bin/uvsh
logto <my project>
LIST DS_JOBS Change_Capture_Test
got the job id
CLEAR.FILE RT_LOG<above jobid>
>clear.file RT_LOG2451
CLEAR.FILE attempt on read-only file.
** CLEAR.FILE processing aborted. **
it seems like RT_LOG2451 file doesn't have the write permission. am i correct? if yes, how to apply chmod command for this file?
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Re: issue on CLEAR.FILE
I just tried this one too.
>LOGTO UV
>CLEAR.FILE RT_LOG2451
Unable to clear file RT_LOG2451.
File name = Change_Capture_Test
Unable to clear file Filter_Stage.
File name =
>
>LOGTO UV
>CLEAR.FILE RT_LOG2451
Unable to clear file RT_LOG2451.
File name = Change_Capture_Test
Unable to clear file Filter_Stage.
File name =
>
Karthik
Re: issue on CLEAR.FILE
Yes, for whatever user you are using that is correct. Use the proper user, the one that does have the permissions it needs.karthi_gana wrote:it seems like RT_LOG2451 file doesn't have the write permission. am i correct?
As to the "this one too" error, you don't do any log clearing while logged into the UV project.... because the logs are not in the UV account; they are specific to project accounts.
![Wink :wink:](./images/smilies/icon_wink.gif)
Last edited by chulett on Wed Mar 21, 2012 4:19 pm, edited 1 time in total.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: issue on CLEAR.FILE
In the usual way, with the -R option. But, if you don't have write permission, what chance is there that you'll have sufficient permission to execute a chmod command?!!karthi_gana wrote:how to apply chmod command for this file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Re: issue on CLEAR.FILE
$ chmod 777 -R RT_LOG2451
chmod: -R: not found [No such file or directory]
chmod: RT_LOG2451: cannot change mode [Operation not permitted]
It seems like i don't have the access to execute CHMOD command.
chmod: -R: not found [No such file or directory]
chmod: RT_LOG2451: cannot change mode [Operation not permitted]
It seems like i don't have the access to execute CHMOD command.
Karthik
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You're not even familiar with the syntax of chmod command. Find someone who has knowledge and permission.
Note: the better solution is to be granted membership of the correct group. should not be used as a universal panacea. They won't allow that in production.
Note: the better solution is to be granted membership of the correct group.
Code: Select all
chmod 777
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.