Search Results

Search: Posts Made By: FlyingSquirrel
1,690
Posted By FlyingSquirrel
In addition to what "rdcwayx" stated correctly......
In addition to what "rdcwayx" stated correctly... The ampersand usage allows the job to run in the background, freeing up the terminal command-line for additional work (you don't have to wait to...
Forum: OS X (Apple) 07-21-2011
8,042
Posted By FlyingSquirrel
I did try to a different address and it went...
I did try to a different address and it went through ok. Thanks.
1,666
Posted By FlyingSquirrel
Marshlight, Not sure of what you meant by...
Marshlight,
Not sure of what you meant by paring down the grid size... but here is a easy way to reformat a delimited file (this assumes your data values do not contain embedded comma's in the...
Forum: OS X (Apple) 07-19-2011
8,042
Posted By FlyingSquirrel
I was able to get the sendmail kind of working. ...
I was able to get the sendmail kind of working.
Using the instructions on this site:
http://yoavgivati.com/2009/10/let-postfix-send-mail-through-your-gmail-account-snow-leopard/

I can send mail...
Forum: OS X (Apple) 07-11-2011
8,042
Posted By FlyingSquirrel
mailx to external email address
Hi, How can I use "mailx" command to send message to an email address like this?


echo "This email body" | mailx -s "my subject" "email@hostname.com"


There may be some setup required in...
8,796
Posted By FlyingSquirrel
Here is a method to process the files one after...
Here is a method to process the files one after another.

Sample Files:
-> ls S5*
S5_SK1.chr01 S5_SK1.chr02 S5_SK1.chr03

Contents of the files:
==> cat S5*
>SK1.chr01
blah
blah
blah...
4,461
Posted By FlyingSquirrel
Hi, How about storing the everything else...
Hi,

How about storing the everything else part in a file called "endpart.txt".
Then do this.


apachectl fullstatus > final.txt
cat endpart.txt >> final.txt
24,562
Posted By FlyingSquirrel
Here is a way similar to Sanjay's method, but one...
Here is a way similar to Sanjay's method, but one that others may find easier...

TO COPY AND PASTE (in vi or vim)

While editing a file in vi,
1) Go to the first line you want to copy and...
11,544
Posted By FlyingSquirrel
Read about the Putty Pageant Authentication Agent...
Read about the Putty Pageant Authentication Agent utility. It allows you to login in without manually typing in a username and password each time.
2,236
Posted By FlyingSquirrel
Sitney, Here is something to try... ...
Sitney,

Here is something to try...
Assumptions are:
- The first line in each file contains the comparison string
- only one instance of a specific string is allowed, regardless of the number...
3,052
Posted By FlyingSquirrel
Here is another way using Perl... Assuming...
Here is another way using Perl...

Assuming you have a file "pay1" containing:

EmployeeID
101
Day_type, day
vacation,1/2/2009
sick day, 3/2/2009
personal day, 4/5/2009
jury duty day,...
1,716
Posted By FlyingSquirrel
For automating Internet Explorer, check out ...
For automating Internet Explorer, check out
SAMIE (http://samie.sourceforge.net)

For automating firefox, check out... I have not tried it.
iMacros for Firefox - Script your Firefox Web Browser...
1,939
Posted By FlyingSquirrel
A couple of variations... (cat <<EOF ...
A couple of variations...


(cat <<EOF
var1
var2
var3
var4
EOF
) | awk '{print $0}'


or if you had your list in a file like suggested above...


awk '{print $0}' yourfile
2,169
Posted By FlyingSquirrel
romanhr, Try this... #!/usr/bin/perl...
romanhr,

Try this...


#!/usr/bin/perl -w
while (<*.txt>) { #for each .txt file
open (FH, "<$_") or die "Can't open file $_"; # open file handle
while...
2,084
Posted By FlyingSquirrel
You may want to try the printf statement to...
You may want to try the printf statement to produce fixed width columns. It is similar to the C and Perl language printf syntax.


awk -F: '{printf("%12s %20s\n", $1,$7)}' /etc/passwd
2,056
Posted By FlyingSquirrel
Check you man page for "sort". The "-T pathname"...
Check you man page for "sort". The "-T pathname" option allows you to specify a larger filesystem that sort can use. When sorting larger files you can sometimes run out of space in the default...
1,526
Posted By FlyingSquirrel
Very similar to Corona688's version, except doing...
Very similar to Corona688's version, except doing an exclusion instead of an inclusion.

## and tym and tyz
egrep -v "##|tym|tyz" < file
2,685
Posted By FlyingSquirrel
hello, I assume you are passing in a filename...
hello,
I assume you are passing in a filename to the script, and if nothing is passed in you want to use the default filename of "sample.log".

Try this 2-liner:

LOGFILE=${1:-"sample.log"}...
19,092
Posted By FlyingSquirrel
You could also try setting the following in your...
You could also try setting the following in your .profile

TMOUT=999999; export TMOUT
3,289
Posted By FlyingSquirrel
If you have a newer version of putty, that...
If you have a newer version of putty, that includes pageant, pscp, plink...
Authenticate using pageant, and use plink to initiate a remote command from your PC writing the output to a file, then...
2,382
Posted By FlyingSquirrel
If you needed to go to each of the directories......
If you needed to go to each of the directories...

arr="/inets /banking /tools"

for DIR in $(echo ${arr})
do
cd ${DIR}
pwd
done
2,191
Posted By FlyingSquirrel
Only and idea: Each time, write to a file the...
Only and idea: Each time, write to a file the last linenumber processed.
Next time read that number into a variable and begin processing at that line plus 1.
3,761
Posted By FlyingSquirrel
If the source file pattern returns more than one...
If the source file pattern returns more than one file, you may want to use "head -1" to just get the top one.

LATEST_FILE=$(ssh ${USER_ID}@${REMOTE_HOSTNAME} "ls -t...
5,829
Posted By FlyingSquirrel
dvella, If your script outputs this: FTP...
dvella,

If your script outputs this:
FTP TO HR : Down
FTP FROM HR 4011a : Up
FTP FROM HR 4019a : Down
FTP FROM HR : Down

try this:
script | awk -F\: '{printf("%-55s %s\n", $1, $2)}'
3,877
Posted By FlyingSquirrel
Open the file in "vi" :1,$s/SIZE X .*$/SIZE...
Open the file in "vi"

:1,$s/SIZE X .*$/SIZE 100M/
Showing results 1 to 25 of 44

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