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
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..
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...
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
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...
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...
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>...
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!!
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...
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...
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.
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.