Posts
 
Reputation
Joined
Last Seen
Ranked #312
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
88% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
6
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
10 Commented Posts
0 Endorsements
Ranked #351
~72.2K People Reached
About Me

Unix/Linux Administrator

Interests
writing, computers, guitar
Favorite Tags
Member Avatar for skelly16

Hi All Anyway of resolving this issue. I have created a script which works properly only issue is occasionaly when the tar.Z file is emailed to me i get this message this only happens sometimes?? begin 644 /var/tmp/aimtl-20080626.txt.tar.Z M'YV08=*TH=.&#9LP+63 @($#A@T9-ES0P4,'@,6+&#-JW,BQH\>/( $L7&B# M!@V1,&+ H $1)0R%-6"@E!$CQ@T;,6C,D &@)HP9,60HC%'#!DJB,&KPE!FR MJ=.G4*-JK#.'3A@Y*.O@4)B4I]2,;\CDF3.G3)ZO&4>FE%'#Y4BC:./*G4NW M;MTI5*9\H2(G#)DR7Y(022#DS9LU@0</J2-'3ADW8_)\&1*V3 *^?@%3R0/' M\I,[;LK(^3(%BI,$GT./9E($-6C17YY426 E#)LZ8>BD>>-F+V?+4^@X#M,F …

Member Avatar for Chezi_1
0
3K
Member Avatar for supra

Hello Everybody, I want to do a project on Linux Shell Programming for my final yr.Can any one give me some idea about what kind of projects I should choose (do) which have industrial relevance and certainly helps in campusing. Thaking you, Supra

Member Avatar for peter_14
0
794
Member Avatar for subhashmedhi

hi all, i have written a shell-script which logs onto a mail-server using telnet and then tries to send the HELO command. The code for the same looks something like this: [code] exec telnet 150.236.18.66 25; echo "HELO"; [/code] The problem is that though the telnet connection is established the …

Member Avatar for Tabsy
0
2K
Member Avatar for dave_nithis

Hi all, I have two files namely a.txt b.txt a.txt contains 100 records and b.txt contains 9 records.These 9 records in b.txt is also present in a.txt.So,I need a script that compares these two files and outputs the unique 91 records alone in another file. Thanks to all in advance!!!! …

Member Avatar for laksh.ss
1
110
Member Avatar for inthespotlite82

Hey guys- I'm trying to create a BASH script that will connect to a remote server, via SSH that requires a password, and then search a log file for the word error, store the output in a file, and then return the file to the local machine. I would like …

Member Avatar for masijade
0
743
Member Avatar for sjgriffiths

Hello I want to sort a file and then uniq it, but ignoring the first field so i have REF | FOR | SUR TLT090991|STEPHEN|GRIFFITHS TLT090992|STEPHEN|GRIFFITHS So i want to uniq but ignore the REF field I had this but it doesnt work cat $FILE | sort -t '|' -k2,3 …

Member Avatar for JeoSaurus
0
212
Member Avatar for egmik3

I am a noob at shell scripting and have been reading up on this topic in random google searches. The only way that I saw that worked was creating a tmpfile. IE: [CODE] crontab -l > $tmpfile edit $tmpfile crontab $tmpfile rm $tmpfile [/CODE] I need a script that will …

Member Avatar for gunasek12
0
7K
Member Avatar for programmer321

[code] Can any one guie me how to find yesterday's date (taking care of the leap years as well)in the format yymmdd using a shell script. Regards. [/code]

Member Avatar for cfajohnson
0
3K
Member Avatar for toronto

Hello Guys, I am new to Shell Scrpting but I am learning quickly. My script looks as follows: #!/bin/sh su - postgres echo "Please enter the password for a2billing user and confirm it: " createuser -W -S -d -r -e a2billinguser createdb -e -O a2billinguser a2billing exit 0 With above, …

Member Avatar for masijade
0
953
Member Avatar for MONITORING

Please let em know if this is valid....... I am trying to run mysql from my shell script by passign a parameter.the sql(script.sql) is in directory $mydir and the parameter is $date and trying to run it this way: un="username" pd="PASSWORD " dbname="dbname" result = `mysql($un,$pd,$dbname,$mydir,"script.sql",$date)` I am trying to …

Member Avatar for reibi
0
135
Member Avatar for wiz83

hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] …

Member Avatar for chongopants
0
194
Member Avatar for bswapnil

hi......i m new to fedora and opencv.i need to compile an opencv inbuilt samples c and c++ prgms in fedora.so how to do that pls help me out there.thnxx in advance....:sad:

Member Avatar for mahah327
0
146
Member Avatar for jchilley

I am attempting to set a ulimit inside of a script to be run by TWS/Maestro. Can't figure it out. Does anyone have any ideas? :-/

Member Avatar for Fernando3
0
1K
Member Avatar for rajenpandit

Hi everybody, I have a problem in include path. i want to keep my all header file in folder named myInclude and include it like #include<myInclude/header.h>, Is there any possible way to do this, if there is than please tell me the step. thanks in advance...........

Member Avatar for rajenpandit
0
126
Member Avatar for leoman

have written a shell script in which I use fastmail to send emails from the shell script. It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs. …

Member Avatar for KlementHonza
0
2K
Member Avatar for iggy78

1.Creates a text file that lists the operating system of your computer, the computers name and username. Use appropriate environmental variables. 2.Append to the text file a listing of the files and folders in the current directory. 3.Create a variable called myName and assign your last name to this variable. …

Member Avatar for anonymoose09
0
117
Member Avatar for chris5126

hi, i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output [code] d15 509MB c1t0d0s5 d13 7.0GB c1t0d0s3 d11 1.5GB c1t0d0s1 d10 10GB c1t0d0s0 d25 509MB c1t1d0s5 d23 7.0GB c1t1d0s3 d21 1.5GB c1t1d0s1 d20 10GB c1t1d0s0 [/code] and for the …

Member Avatar for Aia
0
211
Member Avatar for yhcheong

Hi friends, I'm newbie to shell script. I wanted to create a shell script which able to write a result for all the telnet connection status. For example, from this machine I want to test the telnet connection (total 100+ servers) with this machine. Any idea how to write this …

Member Avatar for Comatose
0
1K
Member Avatar for rman10

Hello! I am a newbie to scripting and I'm trying to start an application via a bash script after checking to make sure that two condititions do (or do not) exist first. I've attempted to write down what I'd like to do and was hoping someone could point me in …

Member Avatar for eggi
0
163
Member Avatar for lehe

Hi, These days I have to install a higher version of bash under my $HOME on my office server. I hope to make the new bash automatically run both when I ssh to my server and when I boot into my office computer which loads my $HOME on the server. …

Member Avatar for eggi
0
163
Member Avatar for egmik3

Does anyone know of a simple command that could get the date and make a folder (mkdir) as its name? say todays date 20090304 as the folder name. I guess the first thing would be grep the date? Then run a mkdir command? Any help is appreciated! Thanks

Member Avatar for eggi
0
134
Member Avatar for JimD C++ Newb

Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. …

Member Avatar for eggi
0
386
Member Avatar for k2k

hi, i am trying to write a script to add 100 users and with certain things created. however, all the book and tutorials online recommend and only show the way to use passwd user after creating a user by useradd username. i know there is a -p option for the …

Member Avatar for eggi
0
142
Member Avatar for chris5126

Hi, I am writing a script to get information on disks for Solaris 10, does anyone know of a way to print out the size of each disk on the system in MB i know how to get it in GB and could do some number manipulation however it would …

Member Avatar for chris5126
0
156
Member Avatar for gornhorse

Hi, I have two shell scripts that do the same thing, but are written differently. The first one works: [code] size=0 pattern=foo for file in * do [ ! -f $file ] && continue if grep $pattern $file > /dev/null then tsize=`cat $file |wc -c` size=`expr $size + $tsize` echo …

Member Avatar for eggi
0
147
Member Avatar for madurai07

[code] #!/bin/bash # Days and Procs declaration DAYS="3" PROCS="dyyno" # 3 days Old date AGO=$(date --date="$DAYS days ago" +"%b %d") # Getting pids PIDS=$(ps eaxo bsdstart,cmd,pid | egrep "^$AGO"' | egrep "$PROCS" | awk '{ print $4}') # killing the processes echo "Killing $PROCS process created $AGO days ago" kill …

Member Avatar for eggi
0
151
Member Avatar for glamiss

i have a couple of servers that are changing perms on /dev/null so that "other" can't access it, at random (well, i'm sure SOMETHING'S causing it, but the timing is random), so i wrote a script to go in the inittab so it'll respawn if it dies (bash shell) the …

Member Avatar for eggi
0
138
Member Avatar for number87

#5report function report { clear echo "Name, Position, Department, Salary" echo "========================================" awk 'BEGIN{FS=","; RS="\n"} {printf "%s, %s, %s, %s\n", $1, $2, $3, $4}' $dataFile awk '{total += $4}END{print total}' $dataFile } i am trying to print the total sum of the salary or $4 field. However i cant figure …

Member Avatar for Salem
0
145
Member Avatar for rgy

hi, can someone help me? i need a hand to get a script for a smal change. iget this kind of structure... 20080926RIM881T.20081127.104856 20080926RIM881T.20081127.104831.done 20080926RIM881T.20081202.084408.done 20080926RIM881T.20081127.104845 20080926RIM881T.20081127.104834 20080926RIM881T.20081216.084909.done 20080926RIM950T.20080929.101124.done 20080926RIM951T.20080929.101124.done 20080926RIM952T.20080929.101125.done i woud like to have a script to find all files with .done then i shoug change all files …

Member Avatar for cfajohnson
0
153
Member Avatar for tondeuse34

Hey guys, i'm having some trouble using wget. What i'm trying do is log into a site, once its logged is to go to a certain link. And once it is there download all the files on the page, but check back later to see if any new ones are …

Member Avatar for eggi
0
103