Displaying 6 results from an estimated 6 matches for "spool_dir".
Did you mean:
spool2dir
2006 Apr 10
2
HTML / PHP
Has anyone made, or have any simple PHP, or HTML interfaces where by a user
could enter their number and the number they want to call, and have asterisk
bridge the calls?
1999 Jul 13
1
Printing to NT: problem with smbprint
...<Snip just including the last section>
logfile=/tmp/smb-print.log
# logfile=/dev/null
#
# The last parameter to the filter is the accounting file name.
# Extract the directory name from the file name.
# Concat this with /.config to get the config file.
#
TRANS=0
eval acct_file=\${$#}
spool_dir=`dirname $acct_file`
config_file=$spool_dir/.config
# Should read the following variables set in the config file:
# server
# service
# password
eval `cat $config_file`
while getopts t c; do
case $c in
t)
TRANS=1
;;
'?') # Bad parameters, ignore it ......
2001 Mar 29
1
Samba Printing to Win98
...file by going:
smbclient //rory/EPSON
translate
print /etc/group
but I cannot print from applications, nor can i use smbprint. I tried going:
cat /etc/passwd | sh -x smbprint
but this is the output I get:
+ logfile=/dev/null
+ eval acct_file=${0}
++ acct_file=smbprint
++ dirname smbprint
+ spool_dir=.
+ config_file=./.config
++ cat ./.config
cat: ./.config: No such file or directory
+ eval
+ echo server , service
+ /usr/bin/smbclient /// -U -N -P
+ echo print -
+ cat
doesn't look right. if anyone's interested in helping, have a look at my
printcap file:
epson|epson stylus photo 1...
2001 Sep 28
1
BUG + FIX in smbprint
...if you like.
#
logfile=/tmp/smb-print.log
# logfile=/dev/null
#
# The last parameter to the filter is the accounting file name.
# Extract the directory name from the file name.
# Concat this with /.config to get the config file.
#MR28092001MR added acct to path
#
TRANS=0
eval acct_file=\${$#}
spool_dir=`dirname $acct_file`
config_file=$spool_dir/acct/.config
# Should read the following variables set in the config file:
# server
# service
# password
#TRANS=1
eval `cat $config_file`
# force translation
while getopts t c; do
case $c in
t)
TRANS=1
;;
'?') #...
2003 Dec 01
0
No subject
...ng log file, change to /dev/null if you like.
#
logfile=/tmp/smb-print.log
# logfile=/dev/null
#
# The last parameter to the filter is the accounting file name.
# Extract the directory name from the file name.
# Concat this with /.config to get the config file.
#
TRANS=0
eval acct_file=\${$#}
spool_dir=`dirname $acct_file`
config_file=$spool_dir/.config
# Should read the following variables set in the config file:
# server
# service
# password
eval `cat $config_file`
while getopts t c; do
case $c in
t)
TRANS=1
;;
'?') # Bad parameters, ignore it ......
2003 Dec 01
0
No subject
...======================================================
server=PRINTMAN
service=BROTHER
password=""
============================================================
smbprint
============================================================
#!/bin/sh
logfile=/tmp/smb-print.log
eval acct_file=\${$#}
spool_dir=`dirname $acct_file`
config_file=$spool_dir/.config
eval `cat $config_file`
echo "server $server, service $service" >> $logfile
(
echo "print -"
cat
) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >>
$logfile
Return-Path: <vr...