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...
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 compi...
I'm wanting to pass more than 9 variables into a unix shell script. When obtaining $10, I get $1's value with a 0 appened to it. Anyway to pass more variables without going to the extreme of $...
Let me preface - I'm somewhat new to the Unix world.
I am trying to run a Shell script upon boot on some Solaris 10 Systems but I need the scripts to execute in the backgroud as specific us...
I'm converting credit card data from one system to another. The data as is sits today has a card holder name field which consists of a single column in my Sybase DB. To properly extract/form...
I need a shell script that will convert all HTML tables in a file to csv format and disgard any text that is not inside a table.
I have searched high and low, found some bits and peices, bu...
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:
...
how can i CAT a file into another from a specific line ?
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...
Hey everybody,
Just wondering if it is possible to have multiple variables in a while loop using a shell script. Here is a loose example of what I am trying to do:
Say you have a shell s...
I am using Linux and I need a way to batch the download of several thousand files I have in a text file.
The text file is laid out such as the number is actually a directory and name1.wma i...
hello
how can i echo in a file, on a specific line ?
Example:
lets say the file has
bla1
bla2
bla3
between bla 2 and 3 i want to put "bla bla"
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 trying to decrypt a pgp file useing the pgp.exe command line tool
how do I go about doing this?
Shouldnt there be 3 parameters passed
filename:*.pgp
public key:"*.asc"
passphrase:"h...
I'm trying to develop a script that will return a Dell system's warranty information by scraping this site:
http://support.dell.com/support/topics/global.aspx/support/my_systems_info/detail...
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...
I have a script that takes a file, encodes it to a new name with .flv extension then moves the file.
It works great with most files, but I have a few hundred that are named with extra peri...
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...
I have used this tutorial (http://www.faqs.org/docs/securing/chap29sec295.html) to create 2 ftp users on a server that only allows me to use Plesk to manage my domain. Now I need to setup spec...
I made a bash script, but I am not very good in it, how can I simplify this bash script? Any other tips?
I need a script to monitor if the unix servers is alive or not. I have central_server to check if the server 1 and server 2 are still alive and send both email message that the server is down ...
Hi,
I have been give a task to collect the usage stats from multiple virtual hosts we have on linux web server and put the summary of the data into new text or excel spreadsheet. Below is t...
Please see the error we are getting for the script
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
^M^M ^[2 ^[2 ^[2 ^[2 ^[2 ^[2 ^[2 ^[2 ...
[root@wks03 libexec]# cat check_www53
RES=`GET http://www53.fabc.com | grep "http://www53.abc.com/Dispatch.jsp?.CurrentState=ZipCode"`
rc=$?
RES="UP"
if [ $rc -eq 0 ] ; then
echo "OK: Web...
hello
i have 2 files .. file1 and file2, with text
how can i make a third file (file3) that contains on the first line, the first from file1, on the second, the first from file2, on the thir...