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: hok1man
  • Content: Threads
  • Order by date
  1. hok1man

    mail attachment file from unix

    Hi guys, just wondering how to put attachment and send the email from unix..from solaris 10. I usually use the mail command is "mailx" search in man page.. no luck... Thanks guys,
  2. hok1man

    pass sybase return code to unix shell

    Hi guys, I've got the script which contain sybase sql as below #!/usr/bin/ksh isql -S.. -U.. -P.. << SQL INSERT INTO TABLE VALUES (...) SQL if INSERT in sybase successful echo "success" else echo "fail" The only way I can tell whether insert successful or not is via sybase...
  3. hok1man

    please, how to get the date yesterday working day.

    Hi guys, I got an issue to find yesterday working day, the working days is mon - fri, so if today is monday 20080929, i need to get yesterday working days which is friday 20080926. in linux GNU there is date --date'1 day ago', but now in UNIX there's no such thing... can you guys help please...
  4. hok1man

    Is there a way to find server details

    Hi guys, Just wondering whether we can find server profile/details in unix, like server located, etc. and hardware configuration.. Thanks guys,
  5. hok1man

    question print out one liner please

    hi guys, I would like to print the output from file.. but I would like to cut out 3 lines from top and 2 lines from bottom.. is there any one liner here? Thanks guys.
  6. hok1man

    merge 3 lines into one line please

    hi guys, as title so the input like this.. a, b, c 12 345 ert, test again again the expected output is : a, b, c, 12, 345 ert, test, again, again every three lines.. thanks heaps guys
  7. hok1man

    vim path directory

    Hi guys, I got vim in directory /apps/solaris/bin and in that directory got vi symbolic link to vim odyssey 3 Sep 16 01:06 vi -> vim but if I type which vim, /apps/solaris/bin/vim which vi, /usr/bin/vi I would like to redirect vi to vim, but how come doesn't work? but if I do...
  8. hok1man

    question server remote node

    Hi guys, I was told by our system admin that we have remote server and 2 underlying server, here's by example : server A -> remote server or dns alias server A1 -> underlying server (resource server) server A2 -> underlying server (failover server) A / \ A1 A2 we always connect via...
  9. hok1man

    search deadlock

    Hi guys, just wondering how to search deadlock in particular time in database and which query caused it? I believe there's database log somewhere? can you help me how to find it? do I need to be dbo_owner to execute it ? Thanks guys,
  10. hok1man

    ls/find question

    Hi guys, just wondering the easy way to find files later than particular timestamp : ie : I need to find file *.ksh after 05:05 in directory dir1 I know it might be simple for you.. Thanks guys,
  11. hok1man

    unix keon

    hi, just wondering whether you guys have used this kind the unix? seems like some command doesn't work in here. I tried nslookup, the result is : bash: nslookup: command not found but if I type : man nslookup there is manual page about this, do you guys know how to make this command work...
  12. hok1man

    how to find the source code in stored proc

    Hi guys, as title question.. I can execute the stored proc, but I would like to see what the stored proc does. Thanks guys,
  13. hok1man

    find ignore case

    Hi guys, In linux, it's always working with find . -iname 'test' what about in solaris 10 what's the command guys? sometimes I find linux is much easier and handy... Thanks
  14. hok1man

    tar multiple files

    Hi guys, I'm trying to tar up *.ksh, but not successful, the files are in different directory and in different level dir. so this is what I tried : find . -name "*.ksh" -exec tar -cf script.tar {} \; but doesn't work.. the content of script.tar is the last file of the ksh list files.. any...
  15. hok1man

    reboot without running startup script

    Hi guys, just wondering which files do we need to be commented out so once we reboot, the startup script is not running? Thanks guys,
  16. hok1man

    redirect output and stderr to screen and logfile

    Hi guys, I am struggling to find how to redirect output and stderr to screen and logfile ? this is what I've done so far start | tee /tmp/clearViewTrigger_start.log 2>&1 "start" is the name of function in the script but the stderr did not go into the logfile. Any help or idea ?
  17. hok1man

    Wipe source environment in script

    Hi guys, Just wondering how do we wipe the source environment in the script : so inside my script, there's code saying : . funcs.sh from procedure, I need to logout and login back.. to wipe the previous environment. but I was just wondering how do we do this in script? Thanks guys.
  18. hok1man

    setup suexec

    Hi guys, I would like to setup suexec for my script, so I don't need to change permission and more secure I know in linux, we can setup in /etc/sudoers file.. what about in unix Solaris 10, Thanks guys,
  19. hok1man

    where to put script to start application up when linux box starts up

    Hi Guys, I have a script that needs to be run once the linux box starts up, but I'm not 100% sure how to implement this. This is what I know. my scripts called : controlApps.ksh but to call it.. I need to put parameter "start", because this script can be use to start and stop application. so...
  20. hok1man

    dynamic case

    Hi guys, I was wondering whether we can do dynamic in case options from a file : for example in a file content like this : step_first.ksh step_second.ksh step_third.ksh so in normal static case selection it would look like this. case "$SELECT" in 1) step_first.ksh ;; 2) step_second.ksh ...

Part and Inventory Search

Back
Top