Hey guys
Got a problem. I need to create a script that automatically uninstalls ICS Viewer 6.0. I need help on how to tackle this.
After some research, turns out PureEdge does not support qu...
In below script i want to take username & server login password from txt file , give me solutions for creating them.
REMOTESERVER="serverA serverB serverC"
export REMOTESERVER
for serv...
Dear experts,
Is there any UNIX command to list out file with the full path?
for e.g i type the command "abc /tmp"
it will list out:
/tmp/file1
/tmp/file2
/tmp/directory1/file1a
/te...
Hi Experts,
I need some help, I want to read a file and store each line as an item in the array.
Thanks
Hussain
I am automating the use of robocopy from the WIndows Server 2003 Resource Kit.
I have been unable to find any information on the exit codes. From what I can tell, anything less than 8 is a...
This is yet another question related to previous questions I posted. I have a script that removes symantec from a specified list of computers. Symantec is removed using the PSEXEC tool from Mi...
I have to write a shell script that checks for the word SUCCESS in the log file . If It didnt find the word SUCCESS in the log file then an error message should go out.
My script:
#!/usr/bin...
I have a Korn Shell Script that reads from a file and gets two ids to be used in a query. The script fails with the following error message, "while_test.ksh[20]: syntax error at line 34 : `<<'...
how to copy folder from one unix server to another unix server using ssh.
Hello all! I have been trying to put together a BASH script which uses Expect within the script. A parameter of another script gets passed to this BASH script, which then passes to the Expect ...
My shell scripting knowledge is limited and I'm having difficulty writing a script to do the following:
- rename log files based on their creation date (e.g. from access_log.1.gz to access_...
How can I print in a C script, the time and hour of the Unix system???
Hi All,
I do have a value sample.csv in one variable. I want to extract "sample" word in to one variable.
How can we acheive this.
price_name_p = $5;
Here $5 ha...
I have a program that outputs text in the normal output stream, and in the error stream.
If I want to capture both outputs, I can do as follows:
./myProgram 2>&1 | tee log.txt
However,...
Hi
I need to run a sql query each day which retrieves data based on a numerical incremental (MAXID) value.
I want then to store the max value from last query ran in a file (tempid) and th...
Hi,
I would like to create a shell script to compare 2 files.
content of file1:
1,2,abcd,4
2,2,abcd,4
3,4,bcde,5
5,5,xcvb,6
content of file2:
0,2,abcd,4
1,2,abcd,4
2,2,abcd,4
3,4,...
Hi,
I am going to attend an interview for a programmer position. The questions will be based on Perl and Shell Script.
Can anyone please post Shell Script questions which usually ask for ...
i am using $PVT_Config in my script..
when i do echo shows me value of variable but after that i am using in script won't work..even not allow me to export that value..
i try to export var...
Hello
I have developed a script designed to read multiple files and extract spcific text information and write that info to an xml file. However, it takes many many hours (>24 in test). Sin...
hi
i want copy folder from one server to another one with timestamp. using scp or ssh.
I need to have a linux shell script (RHFC2) that will search a folder for a specific ext (eg. .dom) parse the file to get the first line of data (data1 data2 data3) separated by spaces. The s...
Hey Guys/Gals... I'm interested in writing a shell script that implements a simple calculator for integer arithmetic. The calculator should prompt the user and receive its input in following ...
I am attempting to write a cron job that will move two files onto an sftp server, then create a directory with the date as its name, and move the files into the directory. So far I have the co...
Is there an SSH command I can run using Putty that will
Take the contents of One directory and put it into another?
So that if
Dir A has:
File 1
File 2
File 3
I can move all th...
In the UNIX shell script (sample.sh) I have a following string '00000101'. How do I strip leading zero from this string so I will end up with '101'? Please note every run produces different ...