search for: a_file

Displaying 9 results from an estimated 9 matches for "a_file".

Did you mean: af_file
2007 Feb 14
2
Solaris 10 and "store dos attributes"
I'm having trouble with files being marked read-only in Windows because the Solaris file owner does not have write-permissions on the file; group-write is allowed: -r--rw---- 1 user group 32 Feb 13 14:19 testfile.txt I thought that setting "store dos attributes = yes" for this share would allow the "read only" setting to be stored in extended attributes, but it
2006 Jul 25
1
newbie--how do i load a parsed file?
...rails and i don''t know how to load up a parsed file into my database. I have my ruby script that parses it but don''t know where to put my code, or how to combine it with view/model/controller. this is what i have: class Description < ActiveRecord::Base def import_strings(a_file) table = { } IO.foreach(''#{a_file}'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x table[ $1 ] = $2 end } description = Description.new description.Lenguage = [$1] description.Platform = [$2] description.save end en...
2006 Nov 16
7
Negating or removing classes
...hat as it puts my config information in two places. I like keeping the key with the service. What might be cool are class destructors where if a class with a suffix eg "_destructor" exists then every node that does not include the main class has the destructor run. Something like: class a_file { file { "/a_file": ensure => present } } class a_file_destructor { file { "/a_file": ensure => absent } } node with_a_file { include a_file } node without_a_file { } Matt Collins
2010 Apr 01
0
OpenSSH Coredump and "Bad packet length" errors seen on 5.10 sparc sun4v (Generic_125100-10)
...00047 auth.info] Disconnecting: Bad packet length 2577232018. >> More: SSH calling is by sync daemon script (from server0-unit0 to server0-unit1), trying to remove /etc/init.d/staticroutes file which is on unit1 but not on unit0 A snippet: message_out ${MSG_TRACE} "The replicated file $a_file does not exist; remove it from the other unit: $OTHERUNIT." yes /usr/local/bin/ssh root@${OTHERUNIT} "rm -f ${a_file}" rc=$? if [ $rc -ne 0 ]; then message_out $MSG_ERROR "Failed to delete ${a_file} on ${OTHERUNIT} with return code $rc." yes...
2005 May 04
2
exop vs md5
WHat is the significance to Samba of pam_password exop vs pam_password md5 in ldap.conf? The reason I ask is that, wherever possible, I prefer to use the vendor supplied tools for manipulating config files. With Fedora 3 it's system-config-authentication and it doesn't give you the option of exop. You either enable MD5, which puts pam_password md5 in ldap.conf, or disable it, which puts
2006 Jul 24
2
Newbie error message!
hello you all, I''m new with Ruby on Rails. I''m developing an application. I got the follwoign erro, can anybody give a hand? ArgumentError in AdminController#import_strings wrong number of arguments (0 for 1) RAILS_ROOT: ./script/../config/.. Request Parameters: {"commit"=>"Import",
2004 Oct 07
0
NT4 Domain Member Server Access Denied v3.07
...ving a list of all domain users (same for groups with -g flag) however it shows "domainuser" only and not "DOMAIN+domainuser" as indicated in the chapter text. 4) "linux~# getent passwd <domainuser>" succeeds. 5) "linux~# chown <domainuser> /export/a_file" appears to succeed however a listing of "/export/a_file" shows owner remaining as 'root'. 6) "linux~# net rpc trustdom list" fails with the message: linux:~ # net rpc trustdom list Password: Could not connect to server CACTUS_1 The username or password was not co...
2013 Mar 14
4
exec resource not refreshed when subscribed resource changes
...; present, mode => 0666, } # Extracting archive creates C:/some/dir exec { ''unpack_archive'': command => "cmd /c rmdir /S /Q C:\some/dir & 7z x -oC:/some C:/path/to/archive-${version}.7z", creates => ''C:/some/dir/a_file'', require => File[''version''], path => $::path, subscribe => File[''version''], } } I trigger this from site.pp like so: class { ''my_archive'': version => ''1.2.3'' } The in...
2006 Jul 31
10
nothing uploads.....why? (newbie question)
...<b>Path: </b><br /> <%= file_field ("StringRecord", "" )%> </p> <p><%= submit_tag "Import"%></p> <%= end_form_tag%> model: class StringRecord < ActiveRecord::Base def import_strings(a_file) table = { } IO.foreach(''#{a_file}'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x table[ $1 ] = $2 end table.each do |key, value| StringRecord.create(:key => key, :value => value) end } end end...