For starters please post the script and mention what Operating System and Shell you have.
At a guess your script generates a command which is too long for the Operating System.
Bearing in mind that we know nothing about your Operating System or Shell, the generic solution format is something like this (in ksh) where the criteria is to delete files more than 180 days old :
The "if -f" covers circumstances where the filename contains weird characters.
This sort of construct never generates long command lines and may not be fast but it gets there in the end.
1. Is there a way to count the number of bytes of a variable?
example:
abc@yahoo.com is 13 bytes
2. Cut command only allows one byte for delimiter
example: cut -f1 -d'.'
delimited by period. Is there a way to have two or more characters in the delimiter field?
thanks in adavance.
:) (4 Replies)
Hello Expert! :b:
Question for you guys, Can anyone tell me how to use terminal emulator on Windows XP to view Solaris config? I have no idea on Solaris and the only thing I could do is to boot it up. Honestly, I have given a tasked to delete all the files and some necessary memory information... (2 Replies)
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Hi All,
I am working with the Solaris 9.
In df -h command / file system size is 9.6 GB , used 7.5 GB and avialble space is 2.1. OK
But in du -hd command it is showing some 4.1 GB only.
How to find out that remaining 3.4GB.
Can you please help me ...
Thanks and Regards, (1 Reply)
Hi,
In df -h root file system showing
(total size) (used) (free)
/dev/dsk/c0t0d0s0 11G 7.6G 2.8G 73% /
but du -hd command showng 5.1 gb used sapce.
I am missing 3.00 gb space.
Here I have to knoe where is Remaining space... (2 Replies)
Hi All,
This is Babu working as a system administrator.
Here I am getting one problem with one of my Sun server's root (/) file system.
In df -h command / file system showing 7.8 GB used space.But in du -hd command it showing 5.2 gb only.
Please can any one help me resolve this issue... (2 Replies)
Hi Administrators,
I have one issue related to GPFS filesystem. We have bad entries in this file system, which reflects error like
ls: 0653-341 The file <filename> does not exist.
when we give "ls -ltr" on this directory.
So we taken the FS filesystem offline and followed the below steps.
... (6 Replies)
I have a C++ binary executable installed in a file system which is shared across multiple solaris boxes.
When I start this executable from one of the boxes,I am able to start only 4 parallel instances and from the 5th instance onwards I am getting the following error.
fatal: libdb2.so.1:... (2 Replies)
Hi gurus,
Need your help ,
Am facing some issue with one of the ext3 file system.while rebooting it failed to mount fs after running fsck i tried manuall but still no luck.However i made the machine up but am unable to mount file system can some one please help me.
root@vm258902]~# cat... (2 Replies)
Trying to load a specific Traditional Chinese Character on an HP UX platform for a Taiwan database. Data is converting to ?. Database has existed since 2008 and this is the first issue I've seen where a user is unable to save the multi-byte character in the database. I'm thinking this is may be... (0 Replies)
Discussion started by: OHcoder
0 Replies
LEARN ABOUT NETBSD
weekly.conf
WEEKLY(5) BSD File Formats Manual WEEKLY(5)NAME
weekly, weekly.conf -- weekly maintenance
DESCRIPTION
The /etc/weekly script is run, by default, every Saturday morning on a NetBSD system. The /etc/weekly.conf file specifies which of the stan-
dard weekly services are performed.
The variables described below can be set to ``YES'' or ``NO'' in the /etc/weekly.conf file. The default settings are in the
/etc/defaults/weekly.conf file. (Note that you should never edit /etc/defaults/weekly.conf directly, as it is often replaced during system
upgrades.)
rebuild_locatedb This rebuilds the locate(1) database, /var/db/locate.database, which must also exist, in order to be rebuilt.
rebuild_mandb This rebuilds the apropos(1) database /var/db/man.db, using makemandb(8) with the -f option.
rebuild_whatisdb This rebuilds the whatis(1) database(s). Note that NetBSD provides a default whatis.db for the system manual pages and
this may not be needed. (Adjust your /etc/man.conf as necessary; see man.conf(5) for details.)
FILES
/etc/weekly weekly maintenance script
/etc/weekly.conf weekly maintenance configuration
/etc/weekly.local local site additions to /etc/weekly
SEE ALSO daily.conf(5), monthly.conf(5)HISTORY
The /etc/weekly script first appeared in 4.3BSD. The /etc/weekly.conf configuration file appeared in NetBSD 1.3.
BSD March 6, 2012 BSD