Hi,
I'm creating a small shell script to compare two files which look like the below output, but taken 5 mins apart, all i need to do in the script is to compare the two files and send an em...
I need to run a script with the following entries in it:
service httpd start
service mysqld start
service syslog-ng start
syslogMover.sh &
However, all my attempts at adding the scrip...
I have a file which I want to send out an email to users if the file changes. We want to do this via a bash shell script. I know that the best way to do this is to calculate the checksum--but ...
Hi,
I'm having a very bizarre problem. I have the script called svcschk
(listed below) under the directory scripts. I have a crontab set up to run it every minute with the following:
...
I have a script which ssh to a remote machine,and runs a binch of scripts.This works fine when I run the actual ssh command from the command line.It also runs fine when the script is executed....
HI
I need a vbs script to check if the archive bit is set for the file D:\My Documents\Commence\SAA\active.log - and if not, I want to set the archive bit for all files in the SAA folder an...
Hi Experts,
Is it possible to write a shell script to capture cpu utilization per user/application for one day? I am using solaris 10.
Hello, I am currently creating a new bash script that checks to see if a directory has exceeded the maximum amount of files. If it does, then it needs to create a new directory with 4 sub-dire...
Can you write Unix/linux shell (bash) script and name it deploy so that when I type deploy inside the terminal on my local desktop pc (which is also linux -- fedora), the application is comp...
Currently, I have a client that has several hundred cron jobs on several different servers, most having to run as 'root'. They have been trying to setup CFEngine, but running into several bric...
I need some assistance. I know there's an easy way to do this with a bash script, but I keep tripping myself over how to format the strings.
I have a directory with 200 files Each is name...
I have a csv file with the following structure in unix system:
ColumnA,ColumnB,ColumnC,ColumnD,ColumnE,ColumnF,ColumnG,ColumnH,ColumnI
AAA,BBB,CCC,DDD,EEE,FFF,GGG,HHH,III
BBB,BBB,CCC,DDD,...
I would like to create a shell script to delete those folder that already 60 days old regardless how new the file inside that folder, is it possible to do that, remember only check for folder ...
how do i recursively search a directory for all files ending in .txt?
then how do i rename them all to .oldtxt?
in shell
I'm using sendmail 8.x and viewing the message headers on most of the spam I recieve I see one thing that's common in the following message header and that's this:
X-Mailer: The Bat! (v3.62...
-----script a.ksh----
multiple command ------
==================
===============
ssh username@servername <<EOT
mulitple command
---------script b.ksh--------
multi...
Hi I want to use a script with netrc . When ever i login using netrc i want to run some automatic script ie change the directory ftp the file from remote system etc....
I am building a sql command string and trying to echo the following statement
echo 'set file_status='UPDATED'' >> temp_command_buffer
how do I get the single quotes around UPDATED to ...
I need to either have a batch file, or commands from VB to create static IP mappings with the ARP command for some automation servo systems. I tried both creating a batch file and using a She...
I am using the command "get-messagetrackinglog" on the exchange 2007 shell to collect the logs.
I want to collect the logs of 3 fields at a time "MessageId,Recipients,MessageSubject " and sav...
I'm debugging an aupplication that uses an old mail program called blat.exe to process form data and send an email. This old program has been working fine until recently when we migrated our ...
I have a ksh script and I need to source a csh script inside it. and I do not how to do it.
I tried the following and it doesn't work:
#!/bin/ksh
export HOME=/home/sthakkar
#echo $HOME
...
I have a file "ports.properties" in my local drive.It has a proprty like this:
age = 25
Now from shell scripting How can iget that value(25)??
Here I know the path of the file and the varia...
Please I need a script to do the following :
1. Winscp the sample.csv from desktop to dev_unix_server:/home/users --- This one is already ok
2. When the user login, he will be given choice...
hello,
can someone please help with creating a powershell script that i can use to purge log files that are older than 2days in a certain directory. My knowledge/expure to powershell is ve...