In linux we normally use the option -maxdepth with the find command to report all files and links in the currect directory, not recursively for example:- find /some/directory/ -maxdepth 1 -type f -name *.log But when we use the same in Oralce Solaris OS, the command will give error as maxdepth is not an option recogonized in the system. We can replace it with -prone and the syntax is as follows:- find /some/directory/* -prune -type f -name *.log this should also work with IBM-AIX OS
The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default. You can find a complete listing of the RPMforge package packages at http://packages.sw.be/ Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i i386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above. Install DAG's GPG key rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt Verify the package you have downloaded rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm Securi...
With mutt instead of mail you would simply call echo "body" | mutt - s "subject" - a attachment0 attachment1 [...] -- my@email . com Some old verison of linux doesn't support the 'mail' command for attaching files. So this will be useful for sending mail with attachment on those servers.
Comments
Post a Comment