Monthly Archives: November 2010

Asterisk recording IN/OUT script

vi /var/www/html/admin/modules/core/agi-bin/recordingcheck $agi->set_variable(“CALLFILENAME”,”g{$exten}-{$timestamp}-{$uniqueid}”); For OUT: $agi->set_variable(“CALLFILENAME”,”OUT{$exten[‘data’]}-{$timestamp}-{$uniqueid}”); For IN: $agi->set_variable(“CALLFILENAME”,”IN{$exten[‘data’]}-{$timestamp}-{$uniqueid}”);

Posted in Linux | Leave a comment

Ajaxplorer + lame + sox + bash scripts

Ajaxplorer – http://www.ajaxplorer.info/wordpress/download/ lame (for sox, to have mp3 conversion support) – http://lame.sourceforge.net/ sox – http://sox.sourceforge.net/ – MUST BE version 14.0.1 ************************************************************************************************#ftpput.sh #!/bin/bashPATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binPIPESTATUS=([0]=”0″)PROMPT_COMMAND=’echo -ne “33]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}”; echo -ne “07”‘PS1='[H W]# ‘PS2=’> ‘PS4=’+ ‘PWD=/var/spool/asterisk/monitorSHELL=/bin/bashTERM=xtermUSER=rootconsoletype=pty DATE=`date +%d%m%Y`cd /var/spool/asterisk/monitormkdir $DATEcp /var/spool/asterisk/monitor/*.wav /var/spool/asterisk/monitor/$DATEtar -cvf /var/spool/asterisk/monitor/$DATE.tar.gz … Continue reading

Posted in Linux | 1 Comment

script for export list of the virtual machines from vCentre

PowerShell -PSConsoleFile “C:Program FilesVMwareInfrastructurevSphere PowerCLIvim.psc1” -command M:_ServiceRequestsVMwareScriptsVMwareExport.ps1 $vcserver=”wfcp3507″connect-VIServer $vcserver $report = @()Get-VM | %{$vm = $_ | Get-View$row = “” | Select Name, State, Status, Host, CPU, Memory, GuestMem, Notes$row.Name = $_.Name$row.State = $_.PowerState$row.Status = $vm.Summary.OverallStatus$row.Host = $_.Host$row.CPU = $vm.Summary.QuickStats.OverallCpuUsage$row.Memory … Continue reading

Posted in VMware | Leave a comment

exe opens in notepad [SOLVED]

[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.exeUserChoice]“Progid”=”Applications\.exe”

Posted in Windows | Leave a comment

How can I restore the defaults of my Desktop Environment?

mount /dev/cdrom “/media/RHEL_5* x86.64” system-config-packages and select GNOME desktop

Posted in Linux | Leave a comment