initial commit of file from CVS for smeserver-dhcpmanager on Sat Sep 7 19:51:44 AEST 2024
This commit is contained in:
20
root/etc/e-smith/events/actions/send-message
Executable file
20
root/etc/e-smith/events/actions/send-message
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Author Stephen Noble <stephen@dungog.net>
|
||||
# create backup scripts for dungog-USERbackup
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
my $userName = $ARGV [0];
|
||||
my $message = $ARGV [1];
|
||||
chomp $message ;
|
||||
|
||||
# supression de certain caratere indesirable.... liste certainement non exhautisve.
|
||||
$message =~ s/'&|`"\/$^~//g;
|
||||
|
||||
#recreate current disk free
|
||||
|
||||
#system("/bin/echo '$message' | /usr/bin/smbclient -M $userName -U admin >> /var/log/send-massage") ;
|
||||
system("/bin/echo '$message' | /usr/bin/smbclient -M $userName -U admin >> /dev/null") ;
|
||||
|
||||
exit (0);
|
Reference in New Issue
Block a user