Strange behavior of find and rm command
Hi I run the below command to find and delete *.xml files 90 or more days old. Code: find . -type f -name '*.xml' -mtime +90 -exec rm {} \; find: stat() error ./Hello/2014_EMPTY.xml: No such file or...
View ArticleCannot eliminate screen blank, lock or saver or whatever it's called...
Hi all, I'm running CentOS 7. When the machine is left alone for a few minutes, a screen saver or blanker or something comes up with a clock and date on it. You have to swipe this to get back to the...
View ArticleRedirect output from terminal
i make a shell script. There has a line wget Code: https://cisofy.com/files/lynis-2.1.0-88394c1affb9e23bd7390098947b3fd4b04e35e8.tar.gz When this line execute terminal show some text like this Code:...
View ArticleNFS: server * not responding, still trying
Server: Code: SunOS asem-mesa1 5.10 Generic_150400-03 sun4v sparc sun4v Client: Code: Linux hp930013lix 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686 i686 i386 GNU/Linux (redhat) client keep...
View ArticleIdentify file pattern, take count of pattern, then act
Guys - Need your ideas on a section of code to finish something up. To make a long story short, I'm parsing a print output file that goes to pre-printed forms. I'm intercepting it, parsing it,...
View ArticleIPV6 ip getting deleted after ping
Hi, IPV6 ip is getting deleted after ping, PHP Code: [root@mindlanf-6 ~]# ifconfig eth4 add 7878:12::10/64 up [root@mindlanf-6 ~]# ifconfig eth4 eth4      Link encap:Ethernet  HWaddr 00:07:43:05:AA:29...
View ArticleReplace spesific letter in a file by other letter
Good afternoon all, I want to ask how to change some letter in my file with other letter in spesific line eg. data.txt Code: 1 1 1 0 0 0 0 for example i want to change the 4th line with character 1....
View ArticleFile System Error: BAD SUPERBLOCK AT BLOCK 16: NUMBER OF DIRECTORIES OUT OF...
Hi All, we are having a file system error in one of our servers. The server failed to boot in usual user mode. Instead boot with single user mode and requesting to run a FSCK manually to repair the...
View ArticleRun a script at remote server without ssh password
Hello, What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed. Scenario1: To copy files...
View ArticleHow to remotely start ssh on Solaris?
Hi everyone, I have a Solaris machine: SunOS 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220 After reboot, I can't ssh to this machine. Error message: ssh: connect to host xxxx port 22:...
View ArticleFtp hangs
On Oracle Linux 5, 64 bit (derivative of RHEL) ... I have a shell script that runs every Sunday, that ftp's a bunch of files from server 'prod' to server 'test'. Script executes on 'test'. This has...
View ArticleComparing to 3 data
Code: # cat list.txt server1 server2 server3 server4 # data to be compared of. #dns address 1.1.1.1 2.2.2.2 3.3.3.3 #for i in `cat list.txt` do grep dns $ i done Desired output: Code: #cat...
View ArticleMatch in two files
Trying to match $5 of file1.txt to $1 of file2.txt and if there is a match copy $6 of file2.txt and paste it to $7 of file1.txt. My attempt is below but it does not seem to produce the desired output....
View ArticleHigh availability
hi guys I posted problem last time I didn't find answer to my issue. my problem is as below: I have two servers which work as an actif/standby in high availability system. but when i use command HASTAT...
View ArticleFind key pattern and print selected lines for each record
Hi, I need help on a complicated file that I am working on. I wanted to extract important info from a very huge file. It is space delimited file. I have hundred thousands of records in this file. An...
View ArticleMaking post down hook script for svn regarding sending emails after an file...
Hi Folks , I am asking this question but i apologise please if this is not the correct forum , I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have...
View ArticleCompiling source code issue
Need assistance in compile a source code with PERL flags Compile source code CDFconvert-2.2.3 which requires Fortran 90,Perl interpreter , Perl/TK module , NetCDF library , Gempak I have all the above...
View ArticleMatch based on criteria to file
Trying to match $1 of target.txt to $5 of file.txt. If there is a match then in an output.txt file $1,$1 (row underneath),$6,$4,$7 from file.txt are printed on the same line as $1 of target.txt. The...
View ArticleMounting 2012R2 NFS Share on Solaris 10
Hi all, new here. I'm attempting to mount an NFS share I've created on a 2012r2 esx VM on my solaris 10 vm, I'm using the following command: Code: mount 2012box:/sharename /mnt and I get the following...
View ArticleMerging multiple lines
I do have a text file with multiple lines on it. I want to put the lines of text into a single line where ever there is ";" for example Code: ert, ryt, yvig, fgr; rtyu, hjk, uio, hyu, hjo; ghj, tyu,...
View Article