Need help on the shell script
Hi all, Im a newbie to Unixshell script .Please explain me what this below shell script does and assistance with me a description Code: ################################ #Â CODEÂ Â Â Â Â Â Â Â #...
View ArticleSpawn more than 8 threads OpenMP & HPUX
Hi folks, I am trying to run more than 8 threads in OpenMP team on my HP-UX 11i v3 system (without root access), but NO success. Compiler: aCC A.06.26 I tried to setup: OMP_NUM_THREADS,...
View ArticleHow to add newline before and after a special character?
So I have a file that contains Code: >NM_#########AUGCAUCGUAGCUAGUCGAUACUGGACUG>NM_########AUGAGUAUGUAUGAUGUAUGUAUGA where # is any digit 0-9 (the text is many repetitions of the pattern above,...
View ArticleHow to grep until a certain character?
Hi, so I have a file containing many repetitions of the pattern block displayed below: Code: >NM_13489075 ACGUGCUAGCUUAGCGA AGCUAGCUGAUCGAUGC ACGUAGCUAGCUGAUCG GAUCGA >NM_13489023...
View ArticleCan someone summarize what exactly this perticular code is doing
Code: #include<stdio.h> #include<string.h> int main() { Â Â Â Â char a[10]={0,1,2,3,4,5,6,7,8,9}; printf("\n--%s-- unable to access values",a); printf("\n--%d %d-- able to access through...
View ArticleSystem partition backup
Dear All, I am using solaris 9,I want to take the backup all the partition of my system 1 by 1 and put it into tape device. Below is the df -kh output Code: Filesystem      size used avail...
View ArticleSafe port number to use for custom purpose?
Hello, this is a really quick question that should be easy to answer. I want to forward a certain port through a firewall. I know 0-1024 are out of the question and 1024-49151 are considered...
View ArticleHow to print column by getting user input.?
Hi.. I have data file.. and I could able to print using cat and awk like this Code: cat filename awk '{print $1 "\t" $2 "\t" $3}' filename but I want to receive input from user like this Code: echo -n...
View ArticleString Replace by *
Hi, I want to replace the string with * using shell commands For e.g, MyString : test Output : **** Please Suggest me, Regards, Nanthagopal A
View ArticlePeriodic thread with clock_nanosleep
Hi I have a periodic task (with the highest priority) which I away every X nano-second. I am using the function clock_nanosleep with REAL_TIME timer. when I wake up, I versify that I was awake on time,...
View ArticleReplace a character with other
Hi All, I am having the below sample lin in the file. Code: '''||V_D_BOOKING_TYPE||''' || ''¬'' || '''||V_D_SHARE_DELIV_FL||''' || ''¬'' || '''|| SUBSTR(V_D_FINANCIALDATATYPE,1,1) ||''' || ''¬'' || I...
View ArticleCheck the file in folder
Hi friends, i have two folder let say app/f1/ app1/f2/ i need to send mail on EOD if no file found in app/f1/ and app/f2/ quick response will much appriciated. regards, PK
View ArticleSending Mail with Postfix
im able to install postfix on my ubuntu server. no issues. but ican't send mail. i dont know what to put for the "relayhost". i've googled this endlessly but i'm clueless. isn't there a general smart...
View ArticleHow to do a "Control Break" (Algorithm)?
A vast amount of problems asked in "Shell Programming an Scripting" can be traced back to be an application of a basic algorithm called a Control Break. Every programmer - and script writers are...
View ArticlePicture size modification depending on their width
Hi, I have a lot of pictures with different size, and i want to add them borders so they will all have the same width, without modifying them (no zoom or what). Here is my script: Code: #!/bin/bash for...
View ArticleRestrict access
I'm trying to use squid to restrict elinks' access to certain websites(only http traffic). I have tried some configs in squid.conf but no luck. Hope someone has a bit of time to explain me how can you...
View Articlescp files that are 3 days older from remote server-
hello, i am trying to get a list of files to be scped from the remote server by running the below in my local unix server ( note - there is a passwordless connectivity setup made between the local and...
View ArticleWho -u gives different output if run from cron than if run from terminal?
If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this: testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy) running the same through...
View Articleawk for triming a string up to the first, then second, then third... match
Hi ! With awk, I would need to trim a string from the beginning up to the first occurrence of "1", then from the beginning up to the second occurrence of "1", then from the beginning up to the third,...
View ArticleCreating Windows 7 image to run in VirtualBox
Hey guys, Not sure if this is the best place for this question, but, after using Fedora now for about a year, I'm still getting used to it but I'm using it practically all the time now and instead of...
View Article