Script not entering VRFY after nc command
I am making a bash script right now and am running into an issue. As I am new to scripting, I do not know exactly what to do to get what I'm looking for in my script. Essentially, my script will...
View ArticleHow can i setup ssh password-less login for particular user?
HI Community. i was trying to create ssh password less authentication for one user called "night" and it's not working for me. this is the steps i followd. i have loged into the server and issued...
View ArticleTrying to configure DNS using BIND package in Oracle Linux 6.6
Version: Oracle Linux 6.6 I am trying to set up DNS for forward and reverse lookups. I am new to BIND package. I have installed the following packages. bind (includes DNS server, named) bind-utils...
View Articleawk print string with removing all spaces
Hi all, I want to set 10 set of strings into a variable where: 1. removing all spaces within each string 2. change the delimiter from "|" to "," Currently, I've the below script like this: Table=`ten...
View ArticleKeep a script on remote machine running (nohup?)
Hi, I'm using expect to ssh into remote machine (i know its not the best practice), and run script "script.sh". This "script.sh" checks whether an other process (some another script) is running and if...
View ArticleBash Sum up for spezific Numbers
Hello everyone, I need your assistance with bash. I want to sum up some numbers, that's not the big problem i think, but the values i want to some depending on another number. For example, I have a...
View ArticleSQL Column Heading
Hi, I am selecting few columns from a table using select query in UNIX shell script ans sending the results as E-mail. But the column headings are not displayed fully. Instead it displays only a part...
View ArticleFORTRAN p-norm
What would be an accurate and efficient computation of the p-norm in Fortran? Code: Integer :: p Real :: sum, pn Do i = 1, Size (a)Â Â Â Â Â Â sum = sum + ((Abs a(i)) ** p)Â Â Â End Do pn = sum **...
View ArticleSubstitute one line of multiple files according to another file
I need to make ~96 configure files from a template config file which has hundreds of rows that looks like: Code: template.config: [LIB] #average insert size avg_ins=1000 ...... other information...
View ArticleCPT test exam compiling code
Hello all I am new to programming and trying to compile this code Code: #include <asm/unistd.h> #include <sys/mman.h> #include <unistd.h> #include <errno.h> Â #define...
View ArticleFTP xlsx file doesn't work ...contains wierd characters.
Guys, I've a xlsx file containing pivot tables and my job is to FTP it from one Linux terminal to another. I use the script below : Code: ftp -in xxxx > /ftp.log 2>&1 <<EOT user xxx...
View ArticleCompletey new to scripting, question/help?
So I need to write a script that can parse our logs and give me the amount of daily activity per user on our website. Unfortunately I'm still learning the very basics so please bear with me :eek:....
View ArticleShell script to find the GB files in /tmp directory in remote server
Hi, i need help on shell scripting. Main intention of the script is step 1: ssh to remote server Step 2: cd /tmp in remote server Step 3: in tmp i want to grep only files and directories which are in...
View ArticleIntroduction
Hello, I couldn't find an actual introduction thread, so I decided to just put this here. I go by d0wngrade online. I have been programming in multiple languages for about 15+ years. I started with...
View ArticleTest cases for file system mount/umount performance in HP
Hi Folks, Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX. Thanks in advance, Vaishey
View ArticleNeed recommendation for open source cms
Hi, I recently bought web hosting at asphostportal.com. I want to create my site with open source CMS. I want to make an ecommerce site for my sell product. Anyone has recommended open source cms for...
View ArticleScript to check for a specific number of columns in a file
Hi All I have a file which has five columns in each rows. Code: cat file.txt a|b|c|d|e 1|2|3|4|5 a1|a2|a3|a4|a5 . . . I need to make sure that there are no less than five or more than five columns (in...
View ArticleHow to export hive table data to a file on local UNIX?
Hi All , I am stuck on the below situation.I have a table called "test" which are created on hive.I need to export the data from hive to a file(test.txt) on local unix system.I have tried the below...
View Article