Re: [Unattended] unattended feedback

jul <[email protected]>
Newsgroups gmane.comp.windows.unattended.general
Message-ID <[email protected]>
Juan Jose Pablos wrote on 14/02/10 19:07:
>> * option to select system where we want or not the updates.
>> for example, for now, I use mainly unattended for applications install,
>> less for OS so I don't want to download all system updates or office one.
> 
> 
> Is already in place. Make sure that instead of base.bat on the
> top_script you use something else.

I'm not talking about install script but about downloading.
I look for a way to say to 'prepare' script, don't download this stuff
because it's useless here.

>> => Windows 7
> 
> 
>> * todo.pl on windows 7 family premium
>> Unrecognized LMachine/SOFTWARE/Microsoft/Windows
>> NT/CurrentVersion//ProductName: Windows 7 Home Premium at Z:\bin\todo.pl
>> line 207
> 
> Strange, there is already a
> 
> elsif ($product_name =~ m/Windows 7/)
> 
> could you check out if you have the latest version from svn?

no, as said before old cvs setup, I updated scripts dir and a few pl
scripts but not todo.
fixed.

I joined a patch I did long time ago to add logging to main todo.pl
(hadn't found something similar at that time)

>> * openoffice.bat
> 
> The second bug is already fixed.

ok. was not in svn when I tested it.

thanks for your help.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info
patch-log-todo_pl (text/plain, 960 B)
--- bin/todo.pl.20100214	Sun Feb 14 20:29:33 2010
+++ bin/todo.pl	Sun Feb 14 20:36:34 2010
@@ -21,6 +21,9 @@
 # Location of "mapznrun" script
 my $mapznrun = "$c\\netinst\\mapznrun.bat";
 
+# Location of the "to do" logs.
+my $log = "$c\\netinst\\logs\\todo.txt";
+
 # Determine alternate letter for z: drive and store it in Z
 # environment variable (unless it is already set).
 unless (exists $ENV{'Z'}) {
@@ -423,7 +426,15 @@
     }
     else {
         print "Running: $cmd\n";
+	## log actions
+	my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
+	$mon += 1;
+	$mon = ($mon < 10)?"0$mon":$mon;
+	$mday = ($mday < 10)?"0$mday":$mday;
         my $status = system $cmd;
+	my ($sec2,$min2,$hour2) = localtime(time);
+    	my @old = read_file ($log);
+	write_file($log, ((1900+$year)."/$mon/$mday $hour:$min:$sec -> $hour2:$min2:$sec2, status $status,\tRunning:$cmd"), @old);
         $ret = $status;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.