Search Results

Showing results 1 to 34 of 34
Search took 0.01 seconds.
Search: Posts Made By: skelly16
Forum: Perl 19 Days Ago
Replies: 2
Views: 414
Posted By skelly16
Hi i created a cron entry for my id so it is the same user. Still dont know why this env variables dont get involved in the script.
Forum: Perl 22 Days Ago
Replies: 2
Views: 414
Posted By skelly16
Hi All

Im very new to perl scripting coming from a shell background, but im determine to stick to it and learn perl.

I have env variables which i have defined in my perl script and work fine...
Forum: Shell Scripting Sep 1st, 2009
Replies: 3
Views: 536
Posted By skelly16
Hi Salem

Tried that on Solaris 10

[date '+%m/%d/%Y':'%H:%M:%S' ; date --date='now -5 minutes' '+%m/%d/%Y':'%H:%M:%S'
09/01/2009:11:11:30
date: illegal option -- date=now -5 minutes
usage: ...
Forum: Shell Scripting Aug 26th, 2009
Replies: 3
Views: 536
Posted By skelly16
Hi

Im writing a script where im using the date command in this format.

[Datestart=`date '+%m/%d/%Y':'%H:%M:%S'`]

Is their a way to force the date variable above to go back 5minutes??

I...
Forum: Shell Scripting Aug 26th, 2009
Replies: 4
Views: 557
Posted By skelly16
Hi Salem

Thanks!! Issue resolved, appreciate the advise with the separator

[sed -e "s@DATEST@$DATESTART@g" $SQLREAD]

Output [08/26/2009:08:31:14]

Perfect for my sql file.
Forum: Shell Scripting Aug 25th, 2009
Replies: 4
Views: 557
Posted By skelly16
Hi Salem

I might of not explained it properly, what i pasted was the code and the output via set -v

The code in the script is this:
[sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW]
...
Forum: Shell Scripting Aug 25th, 2009
Replies: 4
Views: 557
Posted By skelly16
Hi All

Facing issue with using sed and globally replacing a word with date variable for a sql file.

Any help would be appreciated.

sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW

sed...
Forum: Shell Scripting Aug 3rd, 2008
Replies: 3
Views: 1,059
Posted By skelly16
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: 1,059
Posted By skelly16
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...
Forum: Shell Scripting Jul 10th, 2008
Replies: 12
Views: 2,619
Posted By skelly16
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: 1,341
Posted By skelly16
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: 1,341
Posted By skelly16
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: 2,619
Posted By skelly16
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: 2,619
Posted By skelly16
Forum: Shell Scripting Jun 28th, 2008
Replies: 12
Views: 2,619
Posted By skelly16
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...
Forum: Shell Scripting Jun 27th, 2008
Replies: 12
Views: 2,619
Posted By skelly16
Should i maybe chmod 777 the file before the tar and compress part??
Forum: Shell Scripting Jun 27th, 2008
Replies: 12
Views: 2,619
Posted By 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...
Forum: Shell Scripting Apr 14th, 2008
Replies: 3
Views: 1,264
Posted By skelly16
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...
Forum: Shell Scripting Apr 14th, 2008
Replies: 3
Views: 1,264
Posted By skelly16
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...
Forum: Shell Scripting Mar 31st, 2008
Replies: 9
Views: 2,275
Posted By skelly16
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...
Forum: Shell Scripting Mar 27th, 2008
Replies: 9
Views: 2,275
Posted By skelly16
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...
Forum: Shell Scripting Mar 26th, 2008
Replies: 9
Views: 2,275
Posted By skelly16
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: 2,275
Posted By skelly16
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...
Forum: Shell Scripting Feb 9th, 2008
Replies: 4
Views: 1,174
Posted By skelly16
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: 1,145
Posted By skelly16
got it skip the first 3 fields then sort numerically reverse order, cheers
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 1,145
Posted By skelly16
excellent it work, thanks alot

so what does the sort +3nr mean??
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 1,145
Posted By skelly16
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...
Forum: Shell Scripting Nov 29th, 2007
Replies: 5
Views: 1,145
Posted By skelly16
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: 1,184
Posted By skelly16
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: 1,184
Posted By skelly16
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: 1,184
Posted By skelly16
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: 2,167
Posted By skelly16
Thanks ill have a look into them
Forum: Shell Scripting Sep 5th, 2007
Replies: 2
Views: 2,167
Posted By skelly16
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...
Forum: Shell Scripting Aug 30th, 2007
Replies: 0
Views: 2,135
Posted By skelly16
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 34 of 34

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC