Search Results

Search: Posts Made By: landog
3,250
Posted By landog
Thanks! What if the stderr message is this:...
Thanks!

What if the stderr message is this:
backup: 0511-089 Cannot open /dev/rmt0: The input or output media is write-protected.
Mount volume 1 on /dev/rmt0.
Press Enter to continue...
3,250
Posted By landog
Handling tape errors in script
AIX 7.1
Here's the script

#!/bin/ksh
find . -print > filelist.txt
backup -ivqf/dev/rmt0 < filelist.txt > backup.log
if [ "$?" != "0" ]; then
echo "Backup to tape failed!" >> backup.log...
1,669
Posted By landog
Cron confusion - scheduling a script
I have a script that backs up a directory, creates a log file and mails the log file to us.
find . -print | backup -ivqf/dev/rmt0 | tee backup.log
cat backup.log|mail -v -s "Tape backup log"...
Forum: AIX 02-25-2013
6,567
Posted By landog
works, now
It works much better after changing the max file size. :o

Thanks!

edit by bakunin: changed thread title to "solved".
Forum: AIX 02-25-2013
6,567
Posted By landog
[Solved] Backup and restore question
I run a backup sucessfully:

find . | backup -ivqf/dev/rmt0

I want to make sure I can restore, so I change to a test directory and try this:
restore -rvqf /dev/rmt0
However, we fail with...
Forum: AIX 02-25-2013
16,773
Posted By landog
Change password to blank password
AIX 6.1

User has a password set.
It needs to be a blank password (no password).

smit passwd
enter user name
at change password and confirm password, just press ENTER

Afterwards, I...
Forum: AIX 03-22-2012
7,496
Posted By landog
telnet to test connectivity
From a Windows command prompt, when I want to test whether an IP and port is open to a connection I can use telnet:

telnet 1.2.3.4 5050

..tests whether I can connect to port 50 on host...
1,859
Posted By landog
what does this 'trap' do?
trap "" 1 2 3


Thanks,
-dog
2,251
Posted By landog
[Solved] AIX ksh script -d <- what does it mean?
I'm looking at a line in a script:

[ -d /dir1 ] && DRROOT="/dir1" || DRROOT="/dir2" I'm trying to understand it.

Is there a "-d" command and is it seeing if /dir1 exists and, if so, set an...
1,567
Posted By landog
In a script, I want to print (abcd) -- with the...
In a script, I want to print (abcd) -- with the parentheses

echo (abcd)

$ ./test.s
./test.s: line 1: syntax error near unexpected token `abcd'
./test.s: line 1: `echo (abcd)'

echo \(abcd\)...
916
Posted By landog
interesting grep behaviour
I suppose that this is not actually a script question, but I noticed this while working on a bash script homework assignment and I have been impressed with the quality of posts here -- so that is why...
3
878
Posted By landog
tags
What is the syntax for code tags / script tags / other types of tags??

Thanks,
-dog
1,873
Posted By landog
lost the $ prompt - am I spawning shells??
When trying to get the correct syntax to cron a script that creates a file with the date stamp as its output, sometimes I get these results:

- from the command line, I may encounter an error that...
24,378
Posted By landog
thanks...
I was unable to get the complete output of the script using redirection. I only got the first line.

I was able to get the original cron command line working. I had copied my script to another...
24,378
Posted By landog
cron a script and output to file named with date stamp
I can do this from the command line:
/home/mylogin/tests/script.sh > /home/mylogin/tests/`date +"%Y%m%d"`log.csv
It yields a file named: 20110429log.csv

I would like to schedule with cron to...
5,673
Posted By landog
I should substitute "man" for "google" I suppose....
I should substitute "man" for "google" I suppose.
Thanks!
5,673
Posted By landog
cron woes - line too long ??
Here is my cron entry:
13 10 * * * /home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"%Y%m%d"`log.csv

Here is my cron error:
unexpected EOF while looking for matching ``'
...
3,420
Posted By landog
pipe to file named with date
I would like to pipe (redirect ? - what is the right term?) the output of my script to a file named with the current date.

If I run this at a command prompt:
date +'%Y%m%d"
...it...
1,695
Posted By landog
thanks
Chirel, Jim - Thank you!
1,695
Posted By landog
cron a script
This has to be the ultimate newbie question...

I have a script that works well. To run it, I cut and paste it into a putty session.

Is there a way to put the script into a file and just run...
Forum: AIX 10-29-2010
2,924
Posted By landog
Trying to verify actual switchport speed
Connecting network adapter from 100MB switchport to a 1GB switchport.
Trying to verify actual switchport speed.

While connected to 100MB switchport
lsattr -R -l ent0 -a media_speed shows:...
Showing results 1 to 21 of 21

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