[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:alpha-developer@digital.com, 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3520.0. "fred" by HYDRA::AXPDEVELOPER (Alpha Developer support) Tue Apr 22 1997 08:54

    Company Name :  fred
    Contact Name :  Kenneth David Kline, III
    Phone        :  
    Fax          :  
    Email        :  mustang@fred.net
    Date/Time in :  22-APR-1997 04:53:45
    Entered by   :  Pauline Snyder
    SPE center   :  REO

    Category     :  unix
    OS Version   :  
    System H/W   :  


    Brief Description of Problem:
    -----------------------------

From:	SMTP%"mustang@fred.net" 21-APR-1997 20:47:22.71
To:	alpha-developer <alpha-developer@digital.com>
CC:	
Subj:	digital unix question

Return-Path: mustang@fred.net
Received: by asimov.mro.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
	Mon, 21 Apr 1997 20:47:20 -0400
Received: from pobox1.pa.dec.com by fluid.mro.dec.com (5.65v4.0/1.1.8.2/19Nov96-0448PM)
	id AA31227; Mon, 21 Apr 1997 20:47:17 -0400
Received: by pobox1.pa.dec.com; id AA20867; Mon, 21 Apr 97 17:47:13 -0700
Received: by dashub1.das.dec.com with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63)
	id <01BC4E95.79C812A0@dashub1.das.dec.com>; Mon, 21 Apr 1997 20:49:15 -0400
Received: from mail11.digital.com by mrohub1.mro.dec.com with SMTP (Microsoft Exchange Internet Mail Connector Version 4.0.994.63)
	id J1YQJ9CG; Mon, 21 Apr 1997 20:49:13 -0400
Received: from bigdog.fred.net by mail11.digital.com (8.7.5/UNX 1.5/1.0/WV)
	id UAA02897; Mon, 21 Apr 1997 20:43:27 -0400 (EDT)
Received: from Mustang.fred.net (mustang.fred.net [205.252.206.30]) by bigdog.fred.net (8.8.5/8.6.12) with SMTP id UAA13707 for <alpha-developer@digital.com>; Mon, 21 Apr 1997 20:28:46 -0400 (EDT)
Message-Id: <c=US%a=_%p=Digital%l=MROHUB19704220049J1YQJ9CG@dashub1.das.dec.com>
From: "Kenneth David Kline, III" <mustang@fred.net>
Reply-To: "mustang@fred.net" <mustang@fred.net>
To: alpha-developer <alpha-developer@digital.com>
Subject: digital unix question
Date: Mon, 21 Apr 1997 20:30:05 -0400
X-Mailer:  Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Encoding: 21 TEXT

I am trying to write a script that will delete 
all of my archive files that are two days old...

This is what I have come up with and it doesn't seem to work

#!/bin/ksh
clear
month=$1
day=$2
echo Deleting Archive Files 2 Days Old
echo
set rm_list=ls -l *.archive | nawk '$6 ~ /'"$month"'/&&$7 ~ /'"$day"'/
(print $9 )'
rm $rm_list
sleep 3
exit 0

Can some one please help?

Thanks
Ken
T.RTitleUserPersonal
Name
DateLines
3520.1HYDRA::AXPDEVELOPERAlpha Developer supportTue Apr 22 1997 08:58109
From:	HYDRA::AXPDEVELOPER "alpha-developer@digital.com" 22-APR-1997 04:51:18.58
To:	SMTP%"mustang@fred.net"
CC:	AXPDEVELOPER
Subj:	RE: digital unix question

Ken,

You have reached the mailbox of Digitals ASAP programme, the technical support 
line for our software partners. If you are a software developer, engineering 
applications for Alpha systems below is how to join the programme. 

I have sent your mail to one of our engineers who has a solution for you and 
will contact you soon. In future this mailbox is unable to help anyone who is 
not part of the ASAP programme. If you are a member can you supply us with 
better contact information such as your ASAP membership no of company name.

Regards,

ASAP support




        Thank you for your inquiry to Digital's Association of Software &
        Application Partners.  Our program provides services to members of
        the Association, enabling you to develop software products on
        Digital's Alpha systems. Our toll free technical support hotlines
	and Email accounts are provided to members for the purpose of
	answering questions related to application development on Digital's
	Alpha platforms.

	According to our records, it does not appear your company is a
	registered member of the Association. If you believe our records
	are incorrect, please contact us again with the full name of your
	company and your Software Migration Assistance PIN or membership 
	number if you have it available.

	To become a member of ASAP, depending where in the world you are 
	located, please contact the ASAP programme ..........


	By Telephone
	~~~~~~~~~~~~

	North America (US and Canada). Call  1-800-332-4786

	Europe (and also some other countries) via the European ASAP 
        programme office in Galway, Ireland.  Use the freephone number 
        listed below for your country or call direct on 
        +353 91754299  When prompted press "1" for the Hotline.
   
        The following freephone numbers, by country, will redirect to
        the European ASAP office in Galway, where English, French, 
        German, Italian or Spanish speakers are available to assist you.

        Country          Freephone No.   Fax No.
        -------------    -------------   -------------
        Austria          0-6607375       0-6605895
        Belgium          0-80071512      0-80015214
        Denmark          80017398        80017098
        Finland          0-800118065     0-800113505
        France           0-5916058       0-5916040
        Germany          0-130829453     0-130820875
        Israel           1773532002      1773532003
        Italy            167876195       167879435
        Netherlands      0-60228409      0-60222602
        Norway           80011620        80011676
        Portugal         0-50553007
        Spain            900933532
        Sweden           0-20793162      0-20791099
        Switzerland      1555836         1554116
        United Kingdom   0-800973006     0-800973158



	By e-Mail
	~~~~~~~~~~
       
        USA and Canada 		alpha-developer@digital.com
	Europe			asap_euro@ilo.mts.dec.com

        Please include your company telephone number and address.


	World Wide Web
	~~~~~~~~~~~~~~

	More information and technical documentation on ASAP programme 
	has been placed in Digital's World Wide Web pages, starting at
	http://www.digital.com. The ASAP pages can be found under "Products 
	and Services". This is the best place to start for any enquiry about
	Digital and its products.
       

	Or subscribe via WWW in US/Canada
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        By dowloading the "Instructions For Applying" (postscript or text) and
        a postscript copy of the "Application Form"  from the rather long WWW
        location below (all one string)

        http://www-usa.partner.digital.com
                  /www-swdev/pages/Home/ASAP/US_PROGRAMS/becoming_an_isv.html


	Best regards,
	Alpha Developer Support


3520.2awk and ksh errorsRDGENG::SNYDER_PThe speed of time is best set to 1sec/secTue Apr 22 1997 10:0454
To: mustang@fred.net
Cc: axpdeveloper@hydra.mro.dec.D5NET.dec.com, pauline@watnow.enet.dec.com
Subject: response and closure of fred.net axpdeveloper call 
In-Reply-To: Your message of Tue, 22 Apr 97 09:51:41 +0100.
             <9704220851.AA29293@watnow.reo.dec.com> 
Date: Tue, 22 Apr 97 10:54:52 +0100
From: "Pauline Snyder" <pauline>
X-Mts: smtp

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From:  Pauline Snyder                      Loc: REO/F8    DTN: 830 4096
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ken,

Three (or four) small changes, all on the rm_list assignment line
- set in ksh != set in csh:  assign with '=' use export optionally 
- to assign the result of 'ls -l ......':  use $(ls -l ...) which 
  equates to the old back quotes  (`...`) in Bourne shell
- awk actions are enclosed in braces, not parentheses.
- (optional) awk and nawk are the same image on Digital UNIX.  Support 
  for nawk may be discontinued in a later release (but you could set up 
  your own link if necessary).

#!/bin/ksh
clear
month=$1
day=$2
echo Deleting Archive Files 2 Days Old
echo
#set rm_list=ls -l *.archive | nawk '$6 ~ /'"$month"'/&&$7 ~ /'"$day"'/ (print
$9 )'
rm_list=$( ls -l *.archive | awk '$6 ~ /'"$month"'/ && $7 ~ /'"$day"'/ {print $9
}')
rm $rm_list
sleep 3
exit 0


You will receive another mail with details of Digital ASAP (Association
of Software Application Partners) Programme.

Best regards,

Pauline

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pauline Snyder                    Software Partner Engineering, Reading
Digital Equipment Company Ltd.    
Digital Park,  Worton Grange                      
Imperial Way                                 email: pauline@reo.dec.com
Reading  RG2 0TE                             tel:      +44.118.920.4096
England                                      fax:      +44.118.920.4146
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=======================================================================