Problem in script
I am writing a shell script which inside it execute a script --> start_all_oracle it echo a message when executed --> do you wish to remove the log and pinlog files. we have to reply y/n. while...
View ArticleSet Processor Affinity to group of cores
Hi on multi-core system - I know I can set each process to run on specific core (Processor Affinity). If I want to set process (which contains several threads) to run on group of core, how can I do it...
View ArticleIBM VIOS POWERVM IVM error
Hi, When I try to login on my vios ivm website http://vios through the browser -- all three of them -- firefox , chrome , Internet Explorer , i get this error http://vioserver/j_security_check I have...
View ArticleMoving files extension one by one
Hi, I'm trying to do a script that move .Gz extension (one by one) in a new repertory called old-logs and then copy what's inside old-logs to a new.log but adding a date like this (something. gz:...
View ArticleUsing sed to delete lines between a matched pattern
Hi I am new to editing files with sed and have tried this solve this problem to no avail I was wondering if there was anyone out there that knew of a solution to this? I am trying to delete all the...
View ArticleAllowing a backup of a directory through apache/php
I've made a webpage has a button that backs up the /var/www directory to a mounted USB drive. Assume that the page that this is on is completely safe and there is no way that anyone can see it. (unless...
View ArticleWrite a shell program with input
Hi, Here is my question: I want a shell script which I name as 'del', and can be used as del(string). when run del(string), it will delete several directories at different locations in my system,like:...
View ArticleReplace 2nd column in file
I have following entries file abc.txt Code: abc83.out.remote TRUE abc84.out.remote TRUE abc85.out.remote TRUE abc86.out.remote TRUE Please help me, how do i toggle...
View ArticleHow to calculate what percentage of X value is there in the file?
Input File: Code: 5081 2058 175 8282 2358 7347 6612 3459 END OF INPUT FILE I need to know how to calculate minimum,maximum,average of the values in the file and also what percentage is the values over...
View ArticleStore in a 2 dimensional array - Perl
Hey guyz. Here is my sample input file following by first part of my code: Code: * A B C D E reg1 1 0 1 1 0 reg2 0 1...
View ArticleSending sqlplus output to a shell variable
I am trying to import a sqlplus output into a shell variable but it doesnt seem to be working. Code: set -x export DEPENDENT_CR_NO=`sqlplus -s /nolog <<EOF conn username/passwd set heading off...
View ArticleCrontab not working
Hi, I know this is a common topic. I'm trying to launch a perl script using a contab -e entry. I've been trying diff options but nothing seems to work: My cron is running: Code: UID PID PPID C...
View ArticleCan someone explain what these arguments mean?
Hi folks, I am betting this is a very simple thing, but I admit i don't know the proper terms to search it out correctly. I am self-learning at work. I've come on a section of code in a script: Code:...
View ArticleHow to pass current year and month in FOR LOOP in UNIX shell scripting?
Hi Team, I have created a script and using FOR LOOP like this and it is working fine. Code: for Month in 201212 201301 201302 201303 do echo "Starting the statistics gathering of $Month partitions "...
View ArticleHelp with get/mget from FTP server with files older than 10 minutes
Hi! I am new to unix and this forum as well.. Can someone please help me : I want to "get/mget" files which are older than 10 minutes from a remote FTP server like "ftp.com". After getting the files to...
View ArticleMultiprocessing multipointers!!!!
I have a complex problem..... I have to search files on directory "text files" then search on all of them for a word or sentence....the user inter my problem is,,,, if I want to create a child for each...
View ArticleInteger expression expected
Hi, I have placed the script and running successfully on AIX However in Linux it throws integer expression expected Could some one please help me to fix this MaxThreshold4alert=`echo...
View ArticleFormatting output of script
I'm looking for a way to neaten up the out put of an ldapquery. I might get one, none, or several returns for each query; and each query consists of multiple lines. And while each return will contain...
View ArticleInterrupted Cygwin install changed permissions on C drive
I was installing cygwin on my Windows 7 desktop. I guess I picked a bad mirror site because the download speed was very slow and it wasn't able to give me all the packages I wanted. I closed the setup...
View Article