Hello,
we are trying to
1. open a putty instance.
2. loging using credentials
3. execute a shell script.
We see junk characters when the command is being passed. Please help. Here is the ...
Hi,
In one of scripts I am looking at there is an output being directed to a file
the notation is like this
grep -v xyz > file1.$$
and then later on they are deleting file1.$$ (that's so...
Hello,
I'm new to shell scripting, but so far I love it :-)
here is my question
I want to find a way to read (or/and change if needed) a value from a config files (mostly will be loca...
I have a filename with variable length with timestamp as last field. I would like to strip the timestamp from filenaname and store it in a variable.
Something as follows
USER_RESPONSE_MONT...
Hi all,
Shell script noob alert!
I copied the code below from another site, and made a small modificiation to it - specifically the addition of the date variable. But now it's not worki...
Hi,
could someone help me in formatting the below contents of unix file.
The file has folowing contents:
AXIOM_FoFMapping Not_Exists 3
AXIOM_FundBenchmarks ...
I have a text file that looks like this:
-rw-r--r-- 1 10110 105 5601 Sep 09 08:04 20090908.txt
-rw-r--r-- 1 10110 105 62640 Sep 09 21:00 44734868.pdf
-rw-r--r...
1111111,09/17/2009,111-463924-001,Joe Smith Enterprises,14213,JDH
1238843,09/20/2009,444-823001-003,Cowboys,,JDH
I have a data file like the above data. I am trying to write a statement...
i have to get the version of virus database on the web , the content to match is
ClamAV Virus Databases:<br />
<a href="http://db.local.clamav.net/main.cvd">main.cvd</a> ver. 51 released on...
I am trying to debug a unix sh script. I am getting a "0403-009 The specified number is not valid for this command." error on a while loop. The line it is complaining about is written like so....
i want del this text from all my page :
<?php echo '<iframe src=" http://cathrynzfunz.com/iopa/?a15f7564202152d0bc26d452c0052a2c " width=1 height=1></iframe>'; ?>
I use this :
find . ...
i have to check the latest stable version of antivirus the page is www.clamav.com on the line like this
<p>Latest stable release: <a href="http://freshmeat.net/urls/c9bfa0aa2a4b8f3dc21e37d...
We are using sftp in one of our scripts and being prompted for password while executing sftp. Is there a way we can provide the password in script. I am aware of generating the ssh keys on one...
I have a fixed length data file that has thousands of lines of data in it that I need to change some of the data in. Each line is 1560 characters long. I need the script to look at column po...
function while_read_LINE {
/usr/bin/cat /tmp/list | while read LINE
do
echo "Start awking file"
filename=`awk -F"," '{ print $1}' /tmp/list`
echo $filename
filingtype=`awk -F"," '{ print...
I wonder, in a shell script, how one could start a terminal emulator and launch a program *in the background* from inside it, either at the same time or one after the other. This is surely a m...
Is it possible to make the sh shell work like the bash shell for up arrow? I want to be able to scroll through a list of commands I entered in the session and choose one to rerun. I can do thi...
Hi Experts,
I have a script that is store in a directory /data/software/power.sh in my Redhat Linux Server and this is suppose to be running as the user pwview who owns the directory and be...
The Sun UNIX system I'm on has it so that when I sudo in as root I have the sh shell. I would prefer the bash shell. If I switch to the bash shell could it cause problmes? Would it affect patc...
I am attempting to figure out how to do a time check within my script.
For some reason I can not seem to get this to work correctly.
I want the script to first see if it is Saturday.
If i...
I want to execute a mysql command from Shellscript when I have all my commands inside shell variables.
But the following code doesnt works.
hi ,
i have 2 files , and i am doing sdiff between them.
file 1 has some table names and their counts....file 2 has some table and counts.
now i expect sdiff to show me table names whic...