Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: HHG
  • Order by date
  1. HHG

    BO Intellegence Xi Question

    Does anyone know what the following error means - sorry not used BO for a while and we have upgraded recently to xi. I keep getting the following error(fetching data error) and was wondering if anyone know what this means:- Query 1; universname; no data fetched. My query was working perfectly...
  2. HHG

    Getting files from the directory and emailing them

    Hi all - thanks for your time and help. I have now managed to resolve it by using the command touch and find as below for anyone who wishes to find files that have been created on the current day :- touch -t `date +%y%m%d0000` testfile find . \( -name '*' \) -newer testfile -exec ls {} \;
  3. HHG

    Getting files from the directory and emailing them

    Sam - this works grate. Can you help with the find statement. For some reason the find statement I had before is not picking up files created today. syntax I am using is:- find . -ctime 0 -print Now I am getting all of the files. Anyone have any ideas please. Thanks in advance.
  4. HHG

    Getting files from the directory and emailing them

    Hi again, I'm a little stuck now on multiple attachment of files. I have done the following which works, but I need some bodytext. Any one suggest how I might include the body text please. (for file in {directory path/*; do uuencode ${file} $(basename ${file} ) done) | mailx -s "Subject of...
  5. HHG

    Getting files from the directory and emailing them

    Thanks PHV I have used the find command with the -ctime option. All works find so far. Thanks again
  6. HHG

    Getting files from the directory and emailing them

    Hi - Not started it yet as I am stuck on stuck on how to actually ready the files and check the date is current date. Any help would be grate. I can do the rest email etc.. Thanks
  7. HHG

    Getting files from the directory and emailing them

    Hi All, Can anyone help with the following. In a directory I have the following:- -rw-rw-rw- 1 root other 17077 May 1 15:23 1790 -rw-rw-rw- 1 root other 31651 May 1 11:31 1789 -rw-rw-rw- 1 root other 17372 Apr 30 15:25 1788 -rw-rw-rw- 1 root other...
  8. HHG

    Help with Joining lines in a file

    Thank you very much that worked a treat. I used PHV's concept and it worked a treat. Many thanks again to both Feherke and PHV for your kind help.
  9. HHG

    Help with Joining lines in a file

    Hi thanks for this Feherke. I have put the following in a test script. awk -vORS ='{print l==$1?" ":"\n";l=$1}1;END{print""}' inputpc.txt > pcompmw.txt I am getting the following error. # ./test.sh awk: syntax error near line 1 awk: bailing out near line 1 Also, sorry didn't tell you I am...
  10. HHG

    Help with Joining lines in a file

    Hi All, Can anyone help I am pain stakingly trying to go through a file and in vi trying to join to line together. But the file is rather large there must be an easier way to do this. e.g file :- 2226697 29/01/08 2226697 "630511" "0P0705011" 1.00 2226698 29/01/08 2226698 "630571"...
  11. HHG

    BO Designer question

    Does anyone use the universes provided by Orchard housing management systems. I am trying to obtain information by designing our own universe unfortunatly we do not have a data dictionary with table names and field names so its difficult to do. Their data dictionaries definitions are not...
  12. HHG

    How to create a file outputting fields in a fixed position

    Hiya, I have tried this but is only good if there is only one record within your input file (Cat 2). I have a file that will contain, several records. e.g $1 $2 $3 $4 123452,1256235635662,124562463,121313131 134486,6883864133767,454646454,787994947 also the -L removes...
  13. HHG

    How to create a file outputting fields in a fixed position

    Thanks Thomas I will give this a go. Cheers
  14. HHG

    How to create a file outputting fields in a fixed position

    Hi All, Does anyone know the best way to do the following if its at all possible using awk or sed. I have a file that contains 3 fields per transaction e.g. Field1,Field2,Field3 I want to recreate the file so that Field1 starts at potion 1 on the line, field2 starts at character position 42...
  15. HHG

    Unix KSH script - how to find empty files in a directory

    Thanks all. each time it find an empty file I will want to do a mv so I think I will need to do columb's way. There will be no sub directories but thanks its useful to know the find command way.
  16. HHG

    Unix KSH script - how to find empty files in a directory

    Hi all, Can anyone help. I have a set of files held in a directory some of the files are empty. What I want to do is generate a list from that directory excluding the empty files. Any clues how I can achieve this please. Thanks in advance for your help.
  17. HHG

    If else question

    Hi both thanks for this. I think I need to explain the bigger picture. The first thing this script does is a check for a READY file held in a directory. If its found then the script removes the READY script then does something, part of that something is sends files across ftp to another...
  18. HHG

    If else question

    Hi All Happy new year to you all. Hope your Xmas was good too. I have a question, in my existing script I carry out the following:- if test ... then do whatever I want fi else send an email to notify users of the problem end This script runs in cron every 10 minutes. When the script runs...
  19. HHG

    sendmail/mailex/mail query

    Hi Thanks for this I have tried the -r option. I think there is some setup we need to do on our sun box to allow emails to be sent externally not sure what that is yet.
  20. HHG

    sendmail/mailex/mail query

    HI Pdreyer. So is the unixid(username on unix)what would be this syntax as I have only used mailx and the syntax is the same as your suggestion I think. e.g. echo "body contents" | mailx -s "Subject" .email addresses to send. The emails are send via a script in the user crontab. so the from...

Part and Inventory Search

Back
Top