Search Results

Search: Posts Made By: Cbish68
Forum: Ubuntu 10-30-2008
6,333
Posted By Cbish68
Here's the official answer that I received from...
Here's the official answer that I received from Redhat Support:
Forum: Ubuntu 10-24-2008
6,333
Posted By Cbish68
Redhat 2.1 AS Memory Limit?
I have a customer with an HP DL380 G4 server running Redhat 2.1 AS that has 4GB memory installed. They want to upgrade in the server to the maximum of 12GB using (6) 2GB DIMMs. I can do this for...
42,959
Posted By Cbish68
Yeah. That's some script. I feel like a total...
Yeah. That's some script. I feel like a total noob after reading that.

I appreciate the input. I think I am going to approach this from another angle, though.
42,959
Posted By Cbish68
Use date command to find last month
#!/usr/bin/ksh

Does anyone have a good way to set a variable to last month?

For example, today is 20070810. I would like to use the date command to set a variable to last months %m code, which...
1,820
Posted By Cbish68
Then create a mailing list as a variable and cat...
Then create a mailing list as a variable and cat the contents of a large text file into the email:



Howzzat?
7,037
Posted By Cbish68
FYI Doing it this way is working for me now:...
FYI

Doing it this way is working for me now:




Cheers!
21,208
Posted By Cbish68
This: ls -1 | grep .rtp | awk -F. '{print...
This:

ls -1 | grep .rtp | awk -F. '{print $1}' > a.log


should work just fine.
12,084
Posted By Cbish68
It is very close to being correct. I would...
It is very close to being correct.

I would try:

( echo `cat <messagefile>` ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
1,820
Posted By Cbish68
Run a script from cron that contains something...
Run a script from cron that contains something like this:

echo "This is a reminder that you have a task to complete." | /usr/bin/mailx -s "Task Reminder" yourmail@yourserver.com
21,208
Posted By Cbish68
No problem. Study up on the sed and awk...
No problem.

Study up on the sed and awk commands. They will help you out immensely in shell scripting. There's a great book published by O'Reilly on the two commands and their usage. I recommend...
21,208
Posted By Cbish68
The awk command breaks down its input into...
The awk command breaks down its input into variables, ($1, $2, $3, etc.). If you use it without the -F flag it breaks down the input based on spaces, or white space. The -F flag specifies what to use...
21,208
Posted By Cbish68
RE: ls -1 command
use this:

ls -1 | awk -F. '{print $1}' > a.log
7,037
Posted By Cbish68
Automated FTP from Unix to Active Directory Server
Automated Unix to Windows Active Directory FTP

I have done many automated FTP scripts using the following logic:

===============================

echo "Starting the FTP transfer..."
...
7,919
Posted By Cbish68
File Compare in PERL
I need to look at a log file every half hour or so to make sure that some activity is going on there. I thought I would write a quick PERL script that would copy the current log file to the temp...
82,435
Posted By Cbish68
I tried that, but I need to handle multiple,...
I tried that, but I need to handle multiple, unique filenames. In your example, how would you handle sending three files named issue8, issue23 and issue989 if you had to send them separately,...
82,435
Posted By Cbish68
Thanks, but sFTP works a bit differently than...
Thanks, but sFTP works a bit differently than standard FTP. In order to run the sFTP script from cron, unattended, you must use sFTP with a batchfile. The batchfile only understands sFTP commands. It...
82,435
Posted By Cbish68
Scripting multiple file "puts" in sFTP...
I need to send multiple files to a remote server via sFTP. I had everything set up to connect and send a single file automatically using a batch file and key authentication. Recently, however, the...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 06:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy