Home » Infrastructure » Unix » HOST command (Sun solaris, Oracle 11.2.0.2)
HOST command [message #602373] Tue, 03 December 2013 12:52 Go to next message
lg123
Messages: 225
Registered: August 2008
Senior Member
Can the below command be correct?

host 'find ${LOGDIR}/rman_backup_*.log -mtime +7 -exec rm {} \;'

Re: HOST command [message #602374 is a reply to message #602373] Tue, 03 December 2013 12:59 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
lg123 wrote on Tue, 03 December 2013 10:52
Can the below command be correct?

host 'find ${LOGDIR}/rman_backup_*.log -mtime +7 -exec rm {} \;'



It is not correct if you are running on Windows.

It is not correct if you want to know what time it is.

It might be correct, depending upon what you hope to accomplish.
Re: HOST command [message #602376 is a reply to message #602373] Tue, 03 December 2013 13:51 Go to previous message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

It is just a way to post a non-Oracle related question to avoid your topic to be locked as your many other ones, isn't it?
Why don't you search a Unix forum for your Unix questions instead of trying to force them in this forum?

[Updated on: Tue, 03 December 2013 13:52]

Report message to a moderator

Previous Topic: How to change the multiple file names in unix
Next Topic: AIX Scripts with SQLPLUS Commands
Goto Forum:
  


Current Time: Fri Nov 22 16:39:14 CST 2024