10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm using CentOS 7 and I would like to know of a way to read each line and search for a specific word. For example, if it finds the word "Fail" it sends it to a variable, and pipes it to a folder on the network.
What would be the best way in making this work in a Linux environment?
I wrote a... (1 Reply)
Discussion started by: SysAdminRialto
1 Replies
2. Shell Programming and Scripting
I am looking for a way to find a date in the file without using find. for example something like this:
files=`ls |grep txt`
YEST=`TZ="GMT+24" date +'%m-%d-%Y'|sed 's/^0//g' |sed 's/$/.txt/g'`
YES1=`TZ="GMT+48" date +'%m-%d-%Y'|sed 's/^0//g' |sed 's/$/.txt/g'`
if ]; then echo yes;else echo... (4 Replies)
Discussion started by: newbie2010
4 Replies
3. UNIX and Linux Applications
HI All,
I have a requirement of execueting a Shell script on serverA, which is going to execute an application script ( Hyperian Planning script ) on serverB. Can any one please help in how to achieve this?
e.g.
script abc.ksh runs on serverA.
internally abc.ksh call a script... (3 Replies)
Discussion started by: alok2082
3 Replies
4. Shell Programming and Scripting
Hey, It's me again! Still trying to learn to become a better scripter on the job :)
New challenge for assistance, if anyone cares to help, and its two parted! First part, I wanted to create a script at work that would ping a server that was supplied in an argument, then a count (amount of times)... (5 Replies)
Discussion started by: gkelly1117
5 Replies
5. UNIX for Advanced & Expert Users
Hello,
We have a process on our Linux RedHat machine creating symbolic links and moving around some files from domain to domain. The issue is that the programmer has left a long time ago and nobody knows how the program is called, where it is and how the scheduling is setup. It runs every day for... (7 Replies)
Discussion started by: Indalecio
7 Replies
6. Shell Programming and Scripting
HI,
I have a file serverlist in that all host names are placed.
i have written a small script
#./testping
#! /bin/bash
for i in `cat serverlist`
do
ping $i >> output.txt
done
so now it creates a file output.txt till here fine..
now each time i run this script the output file... (4 Replies)
Discussion started by: madhudeva
4 Replies
7. Shell Programming and Scripting
#!/bin/sh
#Finds the directory where usually the message folder information is for Thunderbird.
clear
cd ~/
cd .thunderbird
dir=$(dir)
echo $dir
echo "What is the name of your .default directory?"
read userinput
echo "Your Thunderbird Message Filter msgFilterRules.dat files are in the... (1 Reply)
Discussion started by: edcompsci
1 Replies
8. Shell Programming and Scripting
It feels like I have taken on to of a big task.. but I want to learn but dont know where to start.. Rome wasnt built in one day right..
I have around 30+ servers running linux/unix flavours and need to be able to do this in a script that will be a cronjob.
- ssh to all 30+ servers
- do df -kh... (3 Replies)
Discussion started by: ebolasmurf
3 Replies
9. UNIX for Advanced & Expert Users
Hi ,
I would like to automate a script to ping all the unix servers perodically thru
cronjob.
Is there any script out there? If so Please give me.
Thanks in advance. (2 Replies)
Discussion started by: sriny
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have the following simple CGI script, just containg header:
#!/usr/bin/perl -w
use CGI ':standard';
use lib "/home/myname/lib/perl5/site_perl/5.8.5/";
use Mail::Sendmail;
I also have included this directive in ~/public_html/.htaccess :
SetEnv PERL5LIB... (0 Replies)
Discussion started by: monkfan
0 Replies