Showing results 1 to 27 of 27
Search took 0.01 seconds.
Posts Made By: skelly16
Forum: Shell Scripting Aug 3rd, 2008
Replies: 3
Views: 659
Posted By skelly16
Re: Email attachment and add text inside the mail

Sorry i have looked and cant find anything which would do this. If i try echoing this stop the mail attachment etc, also i dont want the message inside the subject line.

Im trying to achieve...
Forum: Shell Scripting Aug 2nd, 2008
Replies: 3
Views: 659
Posted By skelly16
Email attachment and add text inside the mail

Hi All

Anyway to add a note inside the email saying here is your file after attching a file in unix??

For example my script is fine attaching the excel file but i would like a message inside the...
Forum: Shell Scripting Jul 10th, 2008
Replies: 12
Views: 1,205
Posted By skelly16
Re: begin 644 msg from script sending file

Hi Mike

Well is seemed to go well then all of a sudden one day it decided to do it again :(



I think im going to cry, lol
Forum: Shell Scripting Jul 3rd, 2008
Replies: 3
Views: 602
Posted By skelly16
Re: Compressing a gzip file (.gz)

Hi

The problem is that the file comes in already gzip, unless i could get my script to uncompress then gzip -8 filename again??
Forum: Shell Scripting Jul 3rd, 2008
Replies: 3
Views: 602
Posted By skelly16
Compressing a gzip file (.gz)

Hi All

Anyway of compressing a gzip file down evern further.

I have a file which is already compressed by gzip but is till to big to email.

Any ideas how to make it even smaller???
Forum: Shell Scripting Jul 2nd, 2008
Replies: 12
Views: 1,205
Posted By skelly16
Re: begin 644 msg from script sending file

Hi Mike

Im going to try this for a week and see if it resolves the issue, using tar and gzip only.
Forum: Shell Scripting Jun 28th, 2008
Replies: 12
Views: 1,205
Posted By skelly16
Forum: Shell Scripting Jun 28th, 2008
Replies: 12
Views: 1,205
Posted By skelly16
Re: begin 644 msg from script sending file

Hi Mike

I tried the below but it seems to just hang etc.



Also i cant use your other suggestion as it slightly alters the columns in the data thats why ive not used gzip. Its very strange though,...
Forum: Shell Scripting Jun 27th, 2008
Replies: 12
Views: 1,205
Posted By skelly16
Re: begin 644 msg from script sending file

Should i maybe chmod 777 the file before the tar and compress part??
Forum: Shell Scripting Jun 27th, 2008
Replies: 12
Views: 1,205
Posted By skelly16
begin 644 msg from script sending file

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...
Forum: Shell Scripting Apr 14th, 2008
Replies: 3
Views: 682
Posted By skelly16
Re: Issue with echo $list not working in variable

Ok the issue i have worked out is when there seems to be a space on the new line on the file.

i.e.

cat apps/tech/testruniquefailures
<space is here>
batchjob1
batchjob2

How do i make sure the...
Forum: Shell Scripting Apr 14th, 2008
Replies: 3
Views: 682
Posted By skelly16
Issue with echo $list not working in variable

HI All

I have a script which counts how many times a job has failed.
For some reason my echo $list wont work in a variable, it works if i dont put it in a variable, but i need this in a variable so...
Forum: Shell Scripting Mar 31st, 2008
Replies: 9
Views: 1,340
Posted By skelly16
Re: Issues emailing data from unix/sql script

Hi Mike

Good suggestion about the hash #

I did this and the script worked i received the email attachment, good call :)

create table tempdb..test ( A char(1))

insert into tempdb..test values ('A')
Forum: Shell Scripting Mar 27th, 2008
Replies: 9
Views: 1,340
Posted By skelly16
Re: Issues emailing data from unix/sql script

Hi Mike

I made the change to the EOF no difference.

Basically the "go" part is a sybase command to execute whatever you have queried etc

i.e. you connect to the database then put some sql and type...
Forum: Shell Scripting Mar 26th, 2008
Replies: 9
Views: 1,340
Posted By skelly16
Re: Issues emailing data from unix/sql script

Hey Mike

I tried just the mail part from the command line and it worked fine

cat $file | uuencode $file | /usr/bin/mailx -s "TEST" "joe.blogs@hotmail.com"

I got an email with the excel...
Forum: Shell Scripting Mar 25th, 2008
Replies: 9
Views: 1,340
Posted By skelly16
Issues emailing data from unix/sql script

Hi All

Im having issues with my mail command sending data from my script.
I have a korn shell script which logs onto a database and does a few select statements.
The problem is i think the EOF stops...
Forum: Shell Scripting Feb 9th, 2008
Replies: 4
Views: 802
Posted By skelly16
Re: Killing of a process and send a mail if the process doesnot come up within 2 minutes

sounds like home work, please try to attempt to write the script then we can help you out
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 800
Posted By skelly16
Re: Help to sort my script output?

got it skip the first 3 fields then sort numerically reverse order, cheers
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 800
Posted By skelly16
Re: Help to sort my script output?

excellent it work, thanks alot

so what does the sort +3nr mean??
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 800
Posted By skelly16
Re: Help to sort my script output?

Hi

The data is emailed to me so its all held here

cat $HOME/scripts/autoinfo1.txt | mailx -s "job failure" joeblogg@hotmail.com

that sort command doesnt work against the script, or if i pipe after...
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 800
Posted By skelly16
Help to sort my script output?

Hi Guys

I have created a script and everything works but i want my script to sort by the highest count etc.

The script counts the amount of times a job fails , for example the output looks like...
Forum: Shell Scripting Oct 9th, 2007
Replies: 4
Views: 921
Posted By skelly16
Re: Issue with mail command mailing in script

Sorry it worked, being stupid i had the $filesize variable doing the work before the data came in.
Many thanks for your help masijade. :-)
Forum: Shell Scripting Oct 9th, 2007
Replies: 4
Views: 921
Posted By skelly16
Re: Issue with mail command mailing in script

Hi

I tried that but it doesnt seem to work probably, as i had data in $filename, but it just ran echo "No Data" | mailx -s "$subject2 $day" $destination. For some reason it didnt pickup the...
Forum: Shell Scripting Oct 9th, 2007
Replies: 4
Views: 921
Posted By skelly16
Issue with mail command mailing in script

Hi All

I have created a script which will email output if the file contains data, this works.
But when the file contains 0 data, it tries to email but hangs, when i hit ctrl D, it ask for Cc:...
Forum: Shell Scripting Sep 12th, 2007
Replies: 2
Views: 1,527
Posted By skelly16
Re: Korn Shell books for beginner

Thanks ill have a look into them
Forum: Shell Scripting Sep 5th, 2007
Replies: 2
Views: 1,527
Posted By skelly16
Korn Shell books for beginner

Hi

Can anyone advise me on a good Korn Shell scripting book for me.
Im fairly new to programming, so looking for a good korn shell book.

Im considering buying two books as my work will pay for...
Forum: Shell Scripting Aug 30th, 2007
Replies: 0
Views: 1,360
Posted By skelly16
Help with shell script which looks for a set off files within a directory

Hi Script Masters

Im new to scripting and having trouble to get this script to work. Basically i want my script to look for files within this directory...
Showing results 1 to 27 of 27

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:33 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC