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 TouchToneTommy 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: dsn1
  • Order by date
  1. dsn1

    adding numbers in a file

    oops... missed a tidier awk solution a cpl of posts earlier
  2. dsn1

    adding numbers in a file

    awk '/.*/ { total_count=total_count+$3 } \END { print total_count }' /filename should do the trick Dave
  3. dsn1

    mkcd but burn on windows

    I just did a search and apparantly infrarecorder can burn iso images. Perhaps have a read of the help file Dave
  4. dsn1

    mkcd but burn on windows

    Sounds like you are not burning it as an iso image If you give the file a .iso extension, nero (at least) will pick up that it is an iso image and take you into the iso burning option and create a bootable CD Dave
  5. dsn1

    du for root dir

    find / -ls|awk '$11 !~ /^\/proc/'|sort +4nr should exclude /proc Dave
  6. dsn1

    du for root dir

    how about something akin to find / -ls|grep -v "/proc/"|sort +4nr You might want to adjust the grep to ensure that it is only the /proc directory that is ignored and doesn't ignore any subordinate directories called proc Dave
  7. dsn1

    Losing default gateway on an F150 (AIX)

    That doesn't look right to me. I think that the ODM duplications may will be the issue here. I would suggest deleting the 3 route entries and then going into smit and redefining your default gateway afresh. odmdelete -o CuAt -q "name=inet0 and attribute=route" should get rid of these...
  8. dsn1

    Losing default gateway on an F150 (AIX)

    Can you do odmget CuAt|grep -ip route You should get an output like CuAt: name = "inet0" attribute = "route" value = "net,-hopcount,0,,0,192.168.5.1" type = "R" generic = "DU" rep =...
  9. dsn1

    Assuming a profile while running a script from cron

    If you are wanting the cron job to run under user oracle, then the sensible place to put it is in oracle's cron. That gets rid of the whole need to do an su in the 1st place. In the script make sure everything is explicitly defined to ensure that it gets picked up. If you are lazy you can put...
  10. dsn1

    Unable to run sqlplus from cron-called script

    I am not sure how the copy1off.unix is being invoked since the su as given would seen not to run it , however the issue with the "not found" errors is due to the commands not being in the path In the script ensure that ORACLE_SID is defined and exported and that you call sqlplus by...
  11. dsn1

    Unable to run sqlplus from cron-called script

    The 1st problem looks to me that you are trying to run a directory su - oracle -c /home/oracle/IFSPtoIFSD/ which would fit in with the error message ksh: /home/oracle/IFSPtoIFSD: 0403-006 Execute permission denied. and also that you have a script called...
  12. dsn1

    need help removing files

    If you just want to check and delete files other than directories within /tmp, this may do what you want. ls -l /tmp |awk '! /^d/ {print $NF}'|xargs -l -i find /tmp/{} -mtime +7 -exec rm {} \; Dave
  13. dsn1

    how to increase system dump

    I would suggest creating a specific dump logical volume if you don't already have one. You can get an idea on what size is needed using sysdumpdev -e Divide this by 1048576 to get the estimated size in MB Create a logical volume a bit larger than this perhaps setting type to sysdump to make...
  14. dsn1

    grep for multiple things in multiple files

    Or you could use the v simple awk '/BIG/ && /217848/' filenames Dave
  15. dsn1

    CuAt.vc

    I know it is something to do with customised attributes , duh :) I had a corrupt volume group whose entry in the ODM had got corrupt and was deleting all the entries for it and its dependencies from CuAt, DuDv et al. At the end, the volume group no longer appeared in a lsvg but an lsvg -o was...
  16. dsn1

    CuAt.vc

    Hi Does anyone know what the /etc/objrepos/CuAt.vc is used for? Dave
  17. dsn1

    Set password to not expire

    chuser maxage=0 username Dave
  18. dsn1

    User IDs, User Names on mounted filesystems

    when doing the find command you should do a find / ! -type l -user 376 in order to avoid links since changing the owner of links will change the ownership of the underlying file rather than the link itself Dave
  19. dsn1

    KSH Script that locks user accounts after 30 Days

    The maxage option , as you know, forces your users to change passwords after 4 weeks and indeed will ask them to change their password next time they log in. If you also set the maxexpired option to 4, then 4 weeks after the password expires the user will no longer be able to log in and change...
  20. dsn1

    su without password

    Do note that you cannot use setuid on a script ( as mentioned in your original query ) , you will need to write a program in a language that can be compiled ( e.g. C ) and set the suid bit on that The sudo route can be easier if you wish to do a lot of these but I would not agree that it is any...

Part and Inventory Search

Back
Top