Search Results

Search: Posts Made By: cdunavent
Forum: Solaris 05-02-2011
1,969
Posted By cdunavent
It happened during the installation (disc 1). The...
It happened during the installation (disc 1). The hard drive being used was new-in-box, so it had never seen a copy of solaris.

---------- Post updated at 10:17 PM ---------- Previous update was...
Forum: Solaris 04-30-2011
1,969
Posted By cdunavent
Solaris 8 fresh install halts
Installing Solaris 8 for the first time...on a SunBlade 100. I have original Solaris 8 CD's.

About 45 minutes into the installation, the install halts with the following errors:

ERROR: Could...
23,634
Posted By cdunavent
ls -l (without showing total blocks)
Is it possible to use the ls command and NOT see the total blocks? For example, instead of seeing this...

$ ls -l
total 16
drwxr-xr-x 2 voicem voicem 4096 Dec 3 09:19 directory1
drwxr-xr-x 2...
16,434
Posted By cdunavent
Not exactly what I was looking for. I should have...
Not exactly what I was looking for. I should have been more specific, though. I'm looking for a solution that does not involve pipe (i.e. piping to awk, cut, etc.)
16,434
Posted By cdunavent
ls - hide permissions
I'm listing the files in a particular directory using the ls command...

$ ls -ogh
total 9.4G
-rw-r--r-- 1 1.9G Nov 4 02:29 file1.tar
-rw-r--r-- 1 1.9G Nov 11 03:11 file2.tar
-rw-r--r-- 1 1.9G...
2,529
Posted By cdunavent
Nice, cfajohnson. EXACTLY what I was looking for....
Nice, cfajohnson. EXACTLY what I was looking for. Many thanks!!!
2,529
Posted By cdunavent
The code does work... for FILENAME in...
The code does work...

for FILENAME in /home/voicem/ivr/arivra/*.tar
do
let AGE=(`date +%s` - `date -r $FILENAME +%s`)/86400
echo $AGE
done

The results are exactly what I expected...it is a...
2,529
Posted By cdunavent
The syntax: $ cat test #!/bin/ksh for...
The syntax:

$ cat test
#!/bin/ksh
for FILENAME in /home/voicem/ivr/arivra
do
let AGE=(`date %s`-`date -r $FILENAME %s`)/86400
done


Results of running script:

$ ./test
./test: syntax...
2,529
Posted By cdunavent
The syntax: $ cat test #!/bin/ksh for...
The syntax:

$ cat test
#!/bin/ksh
for FILENAME in /tmp
do
let AGE=($(date %s)-$(date -r $FILENAME %s))/86400
done



The results of running the script:

$ ./test
./test: syntax error...
2,529
Posted By cdunavent
This may be something I can use. However, I'm not...
This may be something I can use. However, I'm not sure how to tie in the uniline code with the for loop. Is this the syntax?

for FILENAME in /tmp
do
let AGE=($(date %s)-$(date -r $FILENAME...
2,529
Posted By cdunavent
Add column that shows how old a file is
I'd like to create a report that is sent to me via email. It's basically just an ls -l of a directory. However, I'd like to add a column to the end of each file listing that is a numeral - telling me...
10,978
Posted By cdunavent
I tried that, but when I take a look at...
I tried that, but when I take a look at archive_los.tmp123, it is empty.
10,978
Posted By cdunavent
Cron job fails, but works fine from command line
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:

55 23 * * * /usr/bin/archive_logs

The script runs perfectly...
Forum: Solaris 12-20-2006
9,204
Posted By cdunavent
banner test > /tmp/test ROOT@fcivra:...
banner test > /tmp/test
ROOT@fcivra: /usr/lib/sendmail -v cdunavent@yahoo.com < /tmp/test
cdunavent@yahoo.com... Connecting to mailhost. via relay...
220 smtpirv.verizon.com ESMTP Sendmail...
Forum: Solaris 12-19-2006
9,204
Posted By cdunavent
Can I change some sort of config file to tell...
Can I change some sort of config file to tell smtp to use port 25, as opposed to whatever port it is currently using??

If not, is rmail an option? Could I tell rmail to use port 25??
Forum: Solaris 12-19-2006
9,204
Posted By cdunavent
I followed your example to the tee, and...
I followed your example to the tee, and everything looked totally normal. In fact, the e-mail actually arrived at the destination. Why, then, can I not just simply do a mailx from the unix box??
Forum: Solaris 12-13-2006
9,204
Posted By cdunavent
Can mailx use a specified interface?
Hello:

I am trying to send unix mail, from command line, to an external e-mail address. When I do a mailx -s 'Subject' me@me.com, it appears to send fine. However, I never receive the e-mail. I...
3,746
Posted By cdunavent
I did locate 5.6 discs, and we have a guy flying...
I did locate 5.6 discs, and we have a guy flying up to the site tonight. Our plan of attack is to follow these instructions:

http://slacksite.com/technotes/fileperm.html


Anyone see anything...
3,746
Posted By cdunavent
Do I need Solaris 6 discs, or can I use 8 or 9?? ...
Do I need Solaris 6 discs, or can I use 8 or 9??

-cd
3,746
Posted By cdunavent
/etc ownership was changed via chown
Hello all:

I have a couple of boxes located in New York, both running SunOS 5.6. I, unfortunately, am located in Pittsburgh and do not have console access to these boxes. A co-worker was...
Forum: Solaris 07-13-2005
3,404
Posted By cdunavent
Cannot FTP
Hey guys...I got a couple fo new Sun-Fire-480R servers that I just turned up onto our network. I cannot FTP into either of them. Is there some sort of config file that I need tweak or comment out...
10,597
Posted By cdunavent
Need to send multiple files during ftp
Hi guys...

I'm working on #!/bin/sh script in a Solaris 7 box that should send several files over to another machine via FTP. Here's what the script looks like:

# This script will send the...
6,612
Posted By cdunavent
Worked like a champ. THANKS!! -cd
Worked like a champ. THANKS!!

-cd
6,612
Posted By cdunavent
Need to replace text in an awk
Hey guys:

Running Solaris 5.5.1 and trying to write an easy /bin/sh script. Here is what I am doing...

grep "Total" /workspace_4/local/reports/cust_calls_5ess.050510 | awk '{print $4 "\t" $7...
2,989
Posted By cdunavent
Multiple commands TAB delimited
Hey guys...

Running Solaris 5.6, trying to write an easy /sbin/sh script. I want to run several commands, then have the results appear on one line. Additionally, I want the results to be separated...
Showing results 1 to 25 of 61

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