I need to send e-mail with 2 opened attachments in the e-mail body.
I have a working shell script for single attachment but it does not work for multiple attachement.
##################
#Pa...
hi ,
i have shell script named test.ksh, in script i have to make ssh connection , upto ssh connection is fine but after ssh connection shell prompt is appear and want read script from exis...
I have the following shell script called mydatabasedump in my cron.daily
#!/bin/sh
source /etc/profile
source ~/.bashrc
/usr/bin/mysqldump --single-transaction -uDBADMIN -pDBPASSWOR...
I need to create a UNIX shell script that takes a directory as an argument, identifies all the files with 0 bytes, prompts the user if it is ok to rename the file, and copies the file adding a...
Hi,
How can I achieve these two things in a bash script:
1) Measure and echo how long individual functions inside the script take to run
2) Measure and echo how long the entire script...
Good afternoon all,
Please look at the example xml file below. I am trying to replace and <indicator> if it exists in a certain <frame>. I know its possible to do this with SED, but I don...
Hi the following lines appear in a bash shell script. I would like to know what these lines is doing, the colon in particular.
: ${pidfile:=/bin/lcl_scripts/httpd2.pid}
pid=$(<$pidfile)
Hello,
I need a PowerShell script that will export a list of all software insalled on a Windows 2003 server. Basically..... something similar to going into Add/Remove Programs and doing an...
Dear All,
I want to generate a certificate from Exchange 2007 command shell. This certificate I will send it to VeriSign to make it published to Internet.
I want to include everything ca...
Hello,
I am new to Powershell Scripting - I have a server that uses a usb hard drive to back it up. Everyday I have to terminal to this device and go through the safely remove hardware proce...
Hello,
I have created a very simple KSH script which creates a few files:
#! /usr/bin/ksh
touch /tmp/flag_file_1
touch /tmp/flag_file_2
What I would like to do is add some error...
I'm trying to get an awk program running in a shell script to use the variables from the script. They variables are not working in the search portion of the awk command. When I replace the var...
I have file with a similar format
...
ABC|CODE1|12333442|002000211
BDF|CODE2|23343344|009928322
..
There are about 10,000 records with the same format as above.
There is another file whi...
Hi,
This is what I do. I go to the command prompt and issue
ps -ef | grep xyz
Now I read the PID for this process and then do
top -p PID
how can I automate this process using ...
hi guys i have problem when i am using chmod it gives me r-xr-sr-x option.
$>chmod -R 2555 lib3
$>ls -la
dr-xr-sr-x 2 ssmdev ssm 1024 Nov 12 10:56 lib3
i want x instead of ...
I am working on a quick script that would read in a group of domain sites and check each one via 'dig' to see if we are authoritative or not and echo out a simple message if we are.
Proble...
I have a directory filled with a TON of images. Probably over a million. I'm setting up a system to break the images up based on their filename. The image filenames are just numbers... 1- 5...
I need a compiler to turn shell (bash, sh, tcsh or csh) scripts to binaries on a Solaris OS
Hi,
I have script converting wav files to gsm.
Converting .wav files to .gsm
Create a bash script...
wav to gsm
for i in *.wav
do
sox $i -r 8000 -c 1 $(basename $i .wav).gsm r...
UNIX Shell Script
I'm in /home/suneel dirctory
in that directory
1. I need to check for a path for example com/src/resources
2. If Path exists I need to copy the files from one directory
...
********************** jupiter.sh **************
(open server
sleep 1
cd /usr ) | telnet
*************************************************
The script ,jupiter.sh tries to conne...
i am not able to get uname value after ssh i don't know what is wrong...
this is my script...
============test.ksh============
#!usr/bin/ksh
scp $CM_LOC_SCRIPTS/test1.ksh ssm@build2:/t...
I am trying to write a script that
1. Accepts the following arguments:
store_number
div_number
user_id
div_code
2. Will read from a configuration file to get the Database
3. Use th...
I have often wondered how to do this, and now I have need to do so.
How do I query the reg for a key, and if it has a value of 1, then change it, otherwise eof. I would think this could be...
I have some record in a text file.
Using awk,
I want
1) to extract the first few word till the word Tel:
2) to extract the Age: and Date of Birth.
3) to extract the last word in the re...