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: *

  1. tulsantide

    setenv not found error in cshrc on a solaris 11 machine

    Hello, I'm getting the following errors when I run .cshrc profile file. Also, I'm unable to invoke csh. AM I missing CSH shell on this server? Please suggest me on this. sudo-sh: setenv: command not found [user1@server1:~]$ csh sudo-sh: csh: disabled within sudo-bash Thanks
  2. tulsantide

    Variable declaration with "-" not working in KSH

    I got it Sam. Thanks for the response.
  3. tulsantide

    Variable declaration with "-" not working in KSH

    Thanks Feherke for the response. We have a requirement to use "-" during the declaration of a variable. Please let me know if you know any other ways to do it. Thanks..
  4. tulsantide

    Variable declaration with "-" not working in KSH

    Hi, The following is not working in KSH. Is there a restriction in KSH to not to use "-" in the variable declaration? The same script is working with "under score" though. #!/bin/ksh ###################################################################### x-y_HOSTLIST=server1,server2 echo "List...
  5. tulsantide

    Escape special characters in shell scripting

    Hi, How to escape special characters in a shell script? Following is working for all the special characters below except for $ and (). Please let me know the solution. echo "@abc!=${bca}:/{^t&e-st*#}"|sed 's/[$!@{#%}^&*()/-]/\\&/g' \@abc\!=:\/\{\^t\&e\-st\*\#\} Thanks
  6. tulsantide

    Deselect values in list boxes

    Hi, I have 3 list boxes and whenever I select a value in one list box the values in the other 2 list boxes should be deselected in case if any of them are selected. Please let me know your suggestions. I already posted this on vbscript forum but I didn't get any response I wrote the...
  7. tulsantide

    Deselect values in a list box through VBScript. Pls help!!

    Hi, I have 3 list boxes and whenever I select a value in one list box the values in the other 2 list boxes should be deselected. Please let me know your suggestions. I wrote the following, which is not working. I'm populating the values in the select boxes on window load...
  8. tulsantide

    Populate values in a list box dynamically in HTA

    Thanks! Olaf and all. It worked after following Olaf's suggestion.
  9. tulsantide

    Populate values in a list box dynamically in HTA

    Chris, I'm getting the following error. Error:'Users_Onload' is undefined. Thanks
  10. tulsantide

    Populate values in a list box dynamically in HTA

    Hi, I'm trying to populate values in a list box dynamically on loading HTA. I have the following code, which is giving me an error. Please let me know if I'm doing anything wrong. Thanks! ####################################################################### <html> <head>...
  11. tulsantide

    Replace the whole line in a file based on keys. Need help!!

    Wow!!. It worked like a charm. I'm new to shell scripting. I don't understand the above command and it doesn't look simple to me :). If possible can you please explain the same command. Thanks for your help!!
  12. tulsantide

    Replace the whole line in a file based on keys. Need help!!

    Hi, I need to replace the whole line in file2.txt based on the key in file1.txt file1.txt ========= ui_home=/export/appl/website/${ui.root} java_home=/export/appl/java/ssss domain.host.list=server-1,server-2 domain.server.cluster.list=server-1:cluster1,server-2:cluster2...
  13. tulsantide

    Search for a key and replace the value in a file

    Never mind it is working after putting double quotes in the sed command
  14. tulsantide

    Search for a key and replace the value in a file

    Hi, I have 2 files as below. file1.txt ========= var1=value1 var2=value2 file2.txt ========== var1=xxxx var2=yyyy var3=zzzzz I need to look for each key from file1.txt in file2.txt and then replace the value of that key in file2.txt with the value that is in file1.txt. The final result...
  15. tulsantide

    Command doesn't work inside a shell script

    Thanks Chris. I found that ^M characters got introduced in env.properties file. Script started working after running dos2unix command against the same property file.
  16. tulsantide

    Command doesn't work inside a shell script

    Hi, I tried the following command outside a script on a Linux system and it works perfect. The same command worked inside the script as well, but it suddenly stopped working. I tried different ways but no luck. Please advice! ============================================= ls...
  17. tulsantide

    Split a string at the last delimiter

    Awesome!!..Thank you all!
  18. tulsantide

    Split a string at the last delimiter

    Hi, I'm trying to split a string at the last delimiter in a vbscript and the following is not working. Please let me know if I'm doing anything wrong. fname = "C:\Users\userid\Downloads\scripts\test.xlsx" myarray=Split(fname, "\$",2) msgbox myarray(0) I'm expecting the output to be...
  19. tulsantide

    Populate values in the 2nd drop down based on the values selected in the first drop down

    Thnaks guitarzan and Mark for your responses. Guitarzan, Here is the code that I have.Please let me know how to populate the items list based on the category that is selected ============================================================== <html> <head> <title>Category</title> <HTA:APPLICATION...

Part and Inventory Search

Back
Top