Search Results

Search: Posts Made By: tderscheid
5,825
Posted By tderscheid
Your script has a log file, right? Have it write...
Your script has a log file, right? Have it write to the log file after it's finished doing whatever it does, and before it sleeps:

echo 'date' Done - going to sleep >> /tmp/script.sleep.log

...
Forum: Solaris 12-24-2008
9,531
Posted By tderscheid
From reading the man page, I guess you could...
From reading the man page, I guess you could unzip the xml file from the zip file, then use the -d option to remove it from the zip file, then use the -g option to update the xml file's new position...
14,639
Posted By tderscheid
From PERL script to single line shell - "What's the status of my Netbackup Media?"
Heh. This took some sweating and cursing. Finally had to talk to the AWK guru in my office.

bpmedialist -l | awk '{print "echo `echo \"obase=2;"$15+4096"\" | bc` "$1}' | sh | cut -c10,13,14-99 |...
Forum: Solaris 06-20-2008
3,644
Posted By tderscheid
File deletion
Is it possible that file handles to the deleted files are still open?

https://www.unix.com/unix-dummies-questions-answers/21084-large-file-deletion.html
Forum: Solaris 05-02-2008
1,993
Posted By tderscheid
compiling Seamonkey 1.1.9 on Solaris 9 sparc
I have gotten tired of getting error messages from SeaMonkey about not being on the latest version.

I have downloaded the source for SeaMonkey, and when I attempt to make it with "gmake -f...
44,850
Posted By tderscheid
Okay, how about doing a move of 100 files at a...
Okay, how about doing a move of 100 files at a time into a /sourcepath/tmp directory, and doing scp * on the directory? If that succeeds with status 0, delete/archive the files and go get a new...
Forum: Solaris 04-11-2008
3,231
Posted By tderscheid
extra hard drive?
If you've got a second hard drive, you can mirror each slice to it individually, boot to the secondary hard drive, then reformat the primary hard drive as you want, then mirror each slice back to the...
44,850
Posted By tderscheid
I'm missing some of the bigger-picture elements
Well, are you generating all the files once, then moving all the files, then deleting all the files, with nothing touching the directory during the transfer? If so, then if your scp /$sourcepath/*...
39,997
Posted By tderscheid
Perhaps this perl module?
This perl module might do it:

Spreadsheet::WriteExcel - Write to a cross-platform Excel binary file. (http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel-2.21/doc/WriteExcel.html)
...
44,850
Posted By tderscheid
what do you have so far?
Do you have anything so far other than that line?

You can test for scp's successful completion by looking to see if the exit status is 0 once it finishes. Here's an example:

#!/bin/bash
echo...
Showing results 1 to 10 of 10

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