nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

cp automake itself

This is a discussion on cp automake itself within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; Hello, I got problem with cp, i dont know why it running it self, i dont see any crontab make ...


Go Back   nixCraft Linux Forum > *BSD Operating systems > All about FreeBSD/OpenBSD/NetBSD

Linux answers from nixCraft.


All about FreeBSD/OpenBSD/NetBSD Discuss all about the Rock solid FreeBSD/OpenBSD/NetBSD. You are free to talk about any issues related to BSD administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-07-2009, 12:24 PM
Junior Member
User
 
Join Date: Jul 2009
OS: CentOS , Fedora , FreeBSD
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
LowKey is on a distinguished road
Question cp automake itself

Hello,

I got problem with cp, i dont know why it running it self, i dont see any crontab make it working itself, Every 1 hour or 2 hours i will see that message show on my console ,

- [root@xxx.xxxx.xxx] - [06:37:42] -
- [~] - cp: ../admins.addlog-*.tgz: No such file or directory
cp: ../admins.delinfo-*.tgz: No such file or directory
cp: ../bugs-*.tgz: No such file or directory

Please advise.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 14-07-2009, 01:16 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I'm assuming that you are using FreeBSD. Can you run the following and see cp command or script that can call the cp:
Code:
crontab -u root -l
crontab -u username -l
cat /etc/crontab
cd /var/cron/tab/
grep -r cp  *
grep -r cp * | grep admins.addlog
cd to /etc/periodic and and grep for cp command:
Code:
cd /etc/periodic
grep -r cp * | grep admins.addlog
grep -r cp * | less
grep -r cp * | less
Run same command on /usr/local/etc/periodic/
Code:
cd /usr/local/etc/periodic/
grep -r cp * | grep admins.addlog
grep -r cp * | less
grep -r cp * | less
These are default location to run cron jobs. Another possibility is running services:
Code:
sockstat -4
sockstat -l -4
ps aux  | less
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 14-07-2009, 01:37 PM
Junior Member
User
 
Join Date: Jul 2009
OS: CentOS , Fedora , FreeBSD
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
LowKey is on a distinguished road
Default

I'm follow your command, then i dont see anything output with grep

---
- [~] - cp: ../admins.addlog-*.tgz: No such file or directory
cp: ../admins.delinfo-*.tgz: No such file or directory
cp: ../bugs-*.tgz: No such file or directory
---

I cant find anything.

But , i'm already do "crontab -r" as root on root.
remove the crontab running.


Thanks
Reply With Quote
  #4 (permalink)  
Old 15-07-2009, 07:14 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Try this should find out file (it will take some time):
Code:
grep -iR '*admins.addlog*' /
Or
Code:
find / -iname '*' -exec grep '*admins.addlog*' '{}' \;
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
cp automake cp itself


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +5.5. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38