• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/examples/printing/

Lines Matching refs:and

9 ##  This program is free software; you can redistribute it and/or modify
91 # driver info and related files from a Windows NT print server.
92 # It then uploads and installs the drivers to a Samba server. (The
96 # The main commands used are \"smbclient\" and \"rpcclient\" combined
97 # with \"grep\", \"sed\" and \"awk\". Probably a Perl or Python script
99 # with printer and driver names which are containing spaces in
105 # driver. Also, driver versions \"0\", \"2\" and \"3\" are placed in
116 # UPDATE: The script replaces the \"/\" with a \"_\" and also renames
124 # mget\" retrieved \"ps5ui.dll\" from the NT printserver, and the
133 # 3) This script is probably not portable at all and relies on lots
141 # contains the variables and that you source that file at the
164 # drivers from the first, and upload them to the second server (which
167 # the role of the NT print server) and upload them to the second....
203 echo " training and troubleshooting work.";
277 # '\$ntprinteradmin' and '\$ntadminpasswd' variables set to
282 # drivers (with related file names) from that host, and saves the
349 # and the file '\${nthost}/enumdrivers3list.txt' to exist.
354 # and creates other textfiles from its contents:
357 # and further prints some more info to stdout.
432 # '\$ntprinteradmin' and '\$ntadminpasswd' variables set to
438 # the help of the 'rpcclient ... enumprinters' utility, and saves
439 # it under name and path '\${nthost}/printerlistwithUNCnames.txt'
502 # PRECONDITIONS: 1) This function expects to find a subdirectory '\$nthost' and
508 # and creates some other textfiles from its contents:
514 # and further prints some more info to stdout.
621 # and also prints it to <stdout>. To do so, it must contact the
672 # and its subdirs '\$nthost/*'.
677 # (using "sed", "cat", "awk" and "grep"). It splits the list up
679 # and files for each of the 2 supported architectures. It creates
681 # and '\${nthost}/WIN40/${nthost}-enumdrivers3list-WIN40.txt'.
757 # About makesubdirsforWIN40driverlist() and makesubdirsforWIN40driverlist ()...
764 # '\${nthost}/WIN40/\${nthost}-enumdrivers3list-WIN40.txt' and
769 # (using "sed", "cat", "awk" and "grep"). They split the input
770 # files up into individual files representing driver(version)s and
771 # create appropriate subdirectories for each driver and version
776 # IF IT DOESN'T WORK: The function "fetchenumdrivers3listfromNThost" and
858 # About splitWIN40fileintoindividualdriverfiles() and
863 # and its subdirs '\$nthost/*/'.
867 # '\${nthost}/WIN40/\${nthost}-enumdrivers3list-WIN40.txt' and
873 # 2) For each supported driver version (\"0\", \"2\" and \"3\") it
881 # and "grep") and store that part describing the related driver
884 # \"Drivername\", \"Configfile\", \"Helpfile\", \"AllFiles\" and
899 # IF IT DOESN'T WORK: The function \"fetchenumdrivers3listfromNThost\" and
1042 # -c "setprinter \"${printername}\" \"Driver was installed and set via MS-RPC (utilized by Kurt Pfeifle\'s set of \"Vampire Printerdrivers\" scripts from Linux)\"" \
1192 # -c "setprinter \"${printername}\" \"Driver was installed and set via MS-RPC (utilized by Kurt Pfeifle\'s set of \"Vampire Printerdrivers\" scripts from Linux)\"" \
1218 # \"AllFilesIAskFor\", and \"AllFilesIGot\" in the directories
1222 # server \"\$nthost\" and download the printer driver files from
1225 # visited in turn and the related files are downloaded for each
1228 # IF IT DOESN'T WORK: The function \"fetchenumdrivers3listfromNThost\" and
1288 # -------------- Now upload the driverfiles and activate them! ----------------
1302 # '\$ntprinteradmin' and '\$ntadminpasswd' variables set to
1305 # \"AllFilesIGot\" and \"AllFilesIAskFor\" in the
1310 # server "\$nthost" and upload the printer driver files into the
1313 # fetched previously from \$smbhost) are visited in turn and the
1315 # to really succeed, the files \"AllFilesIGot\" and \"AllFilesIAskFor\"
1320 # IF IT DOESN'T WORK: The function "fetchenumdrivers3listfromNThost" and
1371 # The "adddriver" command will move them to the "0" subdir and create or
1379 | tee sdiff-of-Requested-and-Received.txt ;
1381 [ -s sdiff-of-Requested-and-Received.txt ] \
1382 || rm -f sdiff-of-Requested-and-Received.txt \
1383 && cat sdiff-of-Requested-and-Received.txt > ../sdiff-of-Requested-and-Received.txt ;
1385 cat sdiff-of-Requested-and-Received.txt \
1414 # The "setdriver" command will do just that and create or
1422 # Now set a nice printer comment and let the world know what we've done
1425 # -c "setprinter \"${printername}\" \"Driver was installed and set via MS-RPC (rpcclient commandline from Linux)\"" \
1450 # "\$nthost" and download the printer driver files from there. To
1453 # turn and the related files are downloaded for each
1456 # IF IT DOESN'T WORK: The function "fetchenumdrivers3listfromNThost" and
1519 # -------------- Now upload the driverfiles and activate them! ----------------
1533 # and '\$smbadminpasswd' variables set to according values.
1535 # and \"AllFilesIAskFor\" in the subdirectory
1539 # print server "\$nthost" and upload the printer driver files into
1543 # \$smbhost) are visited in turn and the related files are
1545 # For this to really succeed, \"AllFilesIGot\" and \"AllFilesIAskFor\"
1550 # IF IT DOESN'T WORK: The function \"fetchenumdrivers3listfromNThost\" and
1598 # The "adddriver" command will move them to the "0" subdir and create or
1606 | tee sdiff-of-Requested-and-Received.txt ;
1608 [ -s sdiff-of-Requested-and-Received.txt ] \
1609 || rm -f sdiff-of-Requested-and-Received.txt \
1610 && cat sdiff-of-Requested-and-Received.txt > ../sdiff-of-Requested-and-Received.txt ;
1612 cat sdiff-of-Requested-and-Received.txt \
1639 # The "setdriver" command will do just that and create or
1646 # Now set a nice printer comment and let the world know what we've done
1649 # -c "setprinter \"${printername}\" \"Driver was installed and set via MS-RPC (rpcclient commandline from Linux)\"" \