Script for alsa, alsamixer dmix and modules
First, excuse me for my bad english
Hi
I've wrote my first script in bash and this is for archlinux.
This one install all necessary packages, check with hwd what are the sound cards modules that have to be probe, write the /etc/rc.d/alsamixer module and install dmix
It also modify /etc/rc.conf to had the modules and the deamon and add a user to the audio group.
The script works fine on my computer but i'd like to know if it really works well.
install_alsa.sh
Hi,
I used this script on pretty much computers now, so it has already saved me pretty much time Thanks again!
May I give a few suggestions:
In the begin you check if the user is root with $USER, maybe it is better to use whoami instead. Because whoami will also see that you are root when you are root in su
Maybe clean up the output a bit, you probably know that you can pipe the output of a program to /dev/null, for instance instead of
amixer set Master 70 unmute
you could use
echo -n 'Setting Master volume to 70...'
if amixer set Master 70 unmute > /dev/null
then
echo 'done'
else
echo 'failed'
exit 1
fi
And maybe use the same layout of output pacman uses.
Also something goes wrong with the /etc/rc.d/aslamixer script. It keeps al the n signs in it instead of new lines. I think it is better to have a seperated file alsamixer and distribute you script in a tarball, so you can easiely copy the file to /etc/rc.d. But of course this is just my opinion.
You often add something to the rc.conf file, because this happens often and is nearly the same everytime you maybe could use a function where you send the parameters, file (in this case rc.conf) variable_name (here it is DAEMONS or MODULES) and of course the value. (for instance alsamixer)
On the end of the script you ask width users you want to add to the audio group. You can check if the user is already in the audio group (cat /etc/groups | grep audio etc) and don't show that user because he's already in it and maybe filter out groups as ftp, svn, etc
This is just a very rough idee but what about that every configuration script that's (going to be) written for arch uses the same file and output layout. For instance that every configuration script has:
1: A standart name, for instance arch-config-audio, arch-config-grub etc
2: As I already mention the same output to the users
3: Two scipts, one called configure, this script would do (if needed) some hardware detection and ask the user questions. The second called install, this would do the time consuming installation and would never ask a question to the user. This way one can do all the configuration of the 'install scripts' directly after each other and than install everything, where the user can leave the computer.
4: And of course add those script to the one of the ftp servers so you can install them with pacman
Don't take the last idee too serious, I often have a lot of stupid idees
Cheers,
David
Similar Messages
-
Standard scripts for Sales Order in SD module.
Hi,
can anyone please tel me some Standard scripts for Sales Order in SD module.
thanx.RVINVOICETH
SD_PACKING_LIST
RVDELNOTE
rest you can search by pressing F4 in se71 than in sales and ditribution part you can find all scripts.
Amit. -
Need help with easy script for open / close app and move files
Hi,
I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd..
I actually learned ASCII C language on university but never used it in real.
I'm trying to create a basic script that perhaps you could help me or guide me how to do it..
The commands are
1) Close a running app (end task it or force kill it, I prefer end task it)
2) delete files from x location
3) run .exe app from y location
4) close that running app
5) move files from z to y
Perhaps adding few "wait few seconds" commands in between each, so the apps will launch successfully..
My first question will be whats the easiest script language to do that?
I tried VBScript but couldn't find commands for open or close apps.. also for controlling files..
And what commands can do that? I could google them up for better understanding no need for rough guide
And lastly, does it too hard? If it takes more than hour to make it (learn and process) than it ain't worth it..
Thanks alot ahead!
Jordan.hmm 2 questions:
1) taskkill.exe causing me access deny error.. I used "taskkill.exe /IM softwarename.exe"
how do I get permission or something to fix that?
2) on the "move" command..
First, its a "copy" instead.. but I easily figured that out..
but more important is that I want to copy a folder.. with unknown list of way too long files and sub folders..
and all I see is ability to move a file..
Is this possible?
Thanks -
Script for parsing xml data and inserting in DB
Thank you for reading.
I have the following example XML in an XML file. I need to write a script that can insert this data into an Oracle table. The table does not have primary keys. The data just needs to be inserted.
I do not have xsd file in this scenario. Please suggest how to modify Method 1 https://community.oracle.com/thread/1115266?tstart=0 mentioned so that I can call the XML mentioned below and insert into a table
Method 1
Create or replace procedure parse_xml is
l_bfile BFILE;
l_clob CLOB;
l_parser dbms_xmlparser.Parser;
l_doc dbms_xmldom.DOMDocument;
l_nl dbms_xmldom.DOMNodeList;
l_n dbms_xmldom.DOMNode;
l_file dbms_xmldom.DOMNodeList;
l_filen dbms_xmldom.DOMNode;
lv_value VARCHAR2(1000);
l_ch dbms_xmldom.DOMNode;
l_partname varchar2(100);
l_filename varchar2(1000);
l_temp VARCHAR2(1000);
TYPE tab_type IS TABLE OF tab_software_parts%ROWTYPE;
t_tab tab_type := tab_type();
BEGIN
l_bfile := BFileName('DIR1', 'SoftwareParts.xml');
dbms_lob.createtemporary(l_clob, cache=>FALSE);
dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
dbms_lob.loadFromFile(dest_lob => l_clob, src_lob => l_bfile, amount => dbms_lob.getLength(l_bfile));
dbms_lob.close(l_bfile);
dbms_session.set_nls('NLS_DATE_FORMAT','''DD-MON-YYYY''');
l_parser := dbms_xmlparser.newParser;
dbms_xmlparser.parseClob(l_parser, l_clob);
l_doc := dbms_xmlparser.getDocument(l_parser);
dbms_lob.freetemporary(l_clob);
dbms_xmlparser.freeParser(l_parser);
l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/PartDetails/Part');
FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
l_n := dbms_xmldom.item(l_nl, cur_emp);
t_tab.extend;
dbms_xslprocessor.valueOf(l_n,'Name/text()',l_partname);
t_tab(t_tab.last).partname := l_partname;
l_file := dbms_xslprocessor.selectNodes(l_n,'Files/FileName');
FOR cur_ch IN 0 .. dbms_xmldom.getLength(l_file) - 1 LOOP
l_ch := dbms_xmldom.item(l_file, cur_ch);
lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_ch));
if t_tab(t_tab.last).partname is null then t_tab(t_tab.last).partname := l_partname; end if;
t_tab(t_tab.last).filename := lv_value;
t_tab.extend;
END LOOP;
END LOOP;
t_tab.delete(t_tab.last);
FOR cur_emp IN t_tab.first .. t_tab.last LOOP
if t_tab(cur_emp).partname is not null and t_tab(cur_emp).filename is not null then
INSERT INTO tab_software_parts
VALUES
(t_tab(cur_emp).partname, t_tab(cur_emp).filename);
end if;
END LOOP;
COMMIT;
dbms_xmldom.freeDocument(l_doc);
EXCEPTION
WHEN OTHERS THEN
dbms_lob.freetemporary(l_clob);
dbms_xmlparser.freeParser(l_parser);
dbms_xmldom.freeDocument(l_doc);
END;
<TWObject className="TWObject">
<array size="240">
<item>
<variable type="QuestionDetail">
<questionId type="String"><![CDATA[30]]></questionId>
<questionType type="questionType"><![CDATA[COUNTRY]]></questionType>
<country type="String"><![CDATA[GB]]></country>
<questionText type="String"><![CDATA[Please indicate]]></questionText>
<optionType type="String"><![CDATA[RadioButton]]></optionType>
<answerOptions type="String[]">
<item><![CDATA[Yes]]></item>
<item><![CDATA[No]]></item>
</answerOptions>
<ruleId type="String"><![CDATA[CRP_GB001]]></ruleId>
<parentQuestionId type="String"></parentQuestionId>
<parentQuestionResp type="String"></parentQuestionResp>
</variable>
</item>
<item>
<variable type="QuestionDetail">
<questionId type="String"><![CDATA[40]]></questionId>
<questionType type="questionType"><![CDATA[COUNTRY]]></questionType>
<country type="String"><![CDATA[DE]]></country>
<questionText type="String"><![CDATA[Please indicate]]></questionText>
<optionType type="String"><![CDATA[RadioButton]]></optionType>
<answerOptions type="String[]">
<item><![CDATA[Yes]]></item>
<item><![CDATA[No]]></item>
</answerOptions>
<ruleId type="String"><![CDATA[CRP_Q0001]]></ruleId>
<parentQuestionId type="String"></parentQuestionId>
<parentQuestionResp type="String"></parentQuestionResp>
</variable>
</item>
</array>
</TWObject>Reposted as
Script to parse XML data into Oracle DB -
Would like to create a script for list all elements and structure of an indesign document
Hello everybody,
I'm a very beginner in indesign scripting.
I would like to create a script in order to list all elements and the inner structure of a n indesign document.
The aim for me is to understand how elements are sorted and arranged into indesign, and be able to find an specific element by its item name.
The output document could be an xml or txt document with a treeview structure.
I would like have a rough idea of which kind of javascript code I should use for that.
Thanks for answers.Hi Ossydoc,
You can use Muse to create such a website. All you need to do is, create links in Muse for the sermons and select " link to File " in the hyperlink option and link to those Mp3 files.
Please refer to this screenshot :- http://prntscr.com/4xvdup
Now, when you publish your site, Muse would automatically upload those files onto the server and the users would then be able to listen as well as download those sermons using the links on your site.
Hope this helps
Regards,
Rohit Nair -
Script for multiple tp addtobuffer and tp import in windows OS
Hi Gurus,
Can someone extend some asssitance? I need to transport 5000 transport request in OS level (window). I wanted to create a script that will enable me to addtobuffer and tp import all this 5000 request and will show the error code of the particular TPs that encountered an error.
Need your immediate assistance please?Hi,
You can do the following
1. Compose all the requests in the given specified format.
tp addtobuffer REQUEST SID client=XXX pf= Transport domain profile Using excel sheet.
We should have following things
a. Request IDs such as <SID>K9XXXXX
b. SID of the system for which these requests are to be imported.
c. Specific client no.
d. Transport domain profile.
The final format of the excel sheet with all the transport requests should look like this.
This format needs to be pasted on to the text file. (transports.txt), in windows you can save as .cmd or bat format may be.
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026.
2. Once the text file or cmd file with all the requests are made, place it on to the target system transport directory.
/usr/sap/Trans/bin.
3. Execute this file (./transports.bat) and redirect this file to one more file (error.txt) for checking the errors
./transports.bat >> error.txt
Once all the transports are attached into buffer, you can do the mass import from STMS
Thanks and Regards
Purna
Edited by: purnachender on Mar 17, 2010 7:11 AM -
Powershell script for average message size and message sent
Regarding this script from a Technet blog:
#mjolinor
#02/24/2011
#requires -version 2.0
$today = get-date
$rundate = $($today.adddays(-1)).toshortdatestring()
$outfile_date = ([datetime]$rundate).tostring("yyyy_MM_dd")
$outfile = "email_stats_" + $outfile_date + ".csv"
$dl_stat_file = "DL_stats.csv"
$accepted_domains = Get-AcceptedDomain |% {$_.domainname.domain}
[regex]$dom_rgx = "`(?i)(?:" + (($accepted_domains |% {"@" + [regex]::escape($_)}) -join "|") + ")$"
$mbx_servers = Get-ExchangeServer |? {$_.serverrole -match "Mailbox"}|% {$_.fqdn}
[regex]$mbx_rgx = "`(?i)(?:" + (($mbx_servers |% {"@" + [regex]::escape($_)}) -join "|") + ")\>$"
$msgid_rgx = "^\<.+@.+\..+\>$"
$hts = get-exchangeserver |? {$_.serverrole -match "hubtransport"} |% {$_.name}
$exch_addrs = @{}
$msgrec = @{}
$bytesrec = @{}
$msgrec_exch = @{}
$bytesrec_exch = @{}
$msgrec_smtpext = @{}
$bytesrec_smtpext = @{}
$total_msgsent = @{}
$total_bytessent = @{}
$unique_msgsent = @{}
$unique_bytessent = @{}
$total_msgsent_exch = @{}
$total_bytessent_exch = @{}
$unique_msgsent_exch = @{}
$unique_bytessent_exch = @{}
$total_msgsent_smtpext = @{}
$total_bytessent_smtpext = @{}
$unique_msgsent_smtpext=@{}
$unique_bytessent_smtpext = @{}
$dl = @{}
$obj_table = {
Date = $rundate
User = $($address.split("@")[0])
Domain = $($address.split("@")[1])
Sent Total = $(0 + $total_msgsent[$address])
Sent MB Total = $("{0:F2}" -f $($total_bytessent[$address]/1mb))
Received Total = $(0 + $msgrec[$address])
Received MB Total = $("{0:F2}" -f $($bytesrec[$address]/1mb))
Sent Internal = $(0 + $total_msgsent_exch[$address])
Sent Internal MB = $("{0:F2}" -f $($total_bytessent_exch[$address]/1mb))
Sent External = $(0 + $total_msgsent_smtpext[$address])
Sent External MB = $("{0:F2}" -f $($total_bytessent_smtpext[$address]/1mb))
Received Internal = $(0 + $msgrec_exch[$address])
Received Internal MB = $("{0:F2}" -f $($bytesrec_exch[$address]/1mb))
Received External = $(0 + $msgrec_smtpext[$address])
Received External MB = $("{0:F2}" -f $($bytesrec_smtpext[$address]/1mb))
Sent Unique Total = $(0 + $unique_msgsent[$address])
Sent Unique MB Total = $("{0:F2}" -f $($unique_bytessent[$address]/1mb))
Sent Internal Unique = $(0 + $unique_msgsent_exch[$address])
Sent Internal Unique MB = $("{0:F2}" -f $($unique_bytessent_exch[$address]/1mb))
Sent External Unique = $(0 + $unique_msgsent_smtpext[$address])
Sent External Unique MB = $("{0:F2}" -f $($unique_bytessent_smtpext[$address]/1mb))
$props = $obj_table.ToString().Split("`n")|% {if ($_ -match "(.+)="){$matches[1].trim()}}
$stat_recs = @()
function time_pipeline {
param ($increment = 1000)
begin{$i=0;$timer = [diagnostics.stopwatch]::startnew()}
process {
$i++
if (!($i % $increment)){Write-host “`rProcessed $i in $($timer.elapsed.totalseconds) seconds” -nonewline}
$_
end {
write-host “`rProcessed $i log records in $($timer.elapsed.totalseconds) seconds”
Write-Host " Average rate: $([int]($i/$timer.elapsed.totalseconds)) log recs/sec."
foreach ($ht in $hts){
Write-Host "`nStarted processing $ht"
get-messagetrackinglog -Server $ht -Start "$rundate" -End "$rundate 11:59:59 PM" -resultsize unlimited |
time_pipeline |%{
if ($_.eventid -eq "DELIVER" -and $_.source -eq "STOREDRIVER"){
if ($_.messageid -match $mbx_rgx -and $_.sender -match $dom_rgx) {
$total_msgsent[$_.sender] += $_.recipientcount
$total_bytessent[$_.sender] += ($_.recipientcount * $_.totalbytes)
$total_msgsent_exch[$_.sender] += $_.recipientcount
$total_bytessent_exch[$_.sender] += ($_.totalbytes * $_.recipientcount)
foreach ($rcpt in $_.recipients){
$exch_addrs[$rcpt] ++
$msgrec[$rcpt] ++
$bytesrec[$rcpt] += $_.totalbytes
$msgrec_exch[$rcpt] ++
$bytesrec_exch[$rcpt] += $_.totalbytes
else {
if ($_messageid -match $messageid_rgx){
foreach ($rcpt in $_.recipients){
$msgrec[$rcpt] ++
$bytesrec[$rcpt] += $_.totalbytes
$msgrec_smtpext[$rcpt] ++
$bytesrec_smtpext[$rcpt] += $_.totalbytes
if ($_.eventid -eq "RECEIVE" -and $_.source -eq "STOREDRIVER"){
$exch_addrs[$_.sender] ++
$unique_msgsent[$_.sender] ++
$unique_bytessent[$_.sender] += $_.totalbytes
if ($_.recipients -match $dom_rgx){
$unique_msgsent_exch[$_.sender] ++
$unique_bytessent_exch[$_.sender] += $_.totalbytes
if ($_.recipients -notmatch $dom_rgx){
$ext_count = ($_.recipients -notmatch $dom_rgx).count
$unique_msgsent_smtpext[$_.sender] ++
$unique_bytessent_smtpext[$_.sender] += $_.totalbytes
$total_msgsent[$_.sender] += $ext_count
$total_bytessent[$_.sender] += ($ext_count * $_.totalbytes)
$total_msgsent_smtpext[$_.sender] += $ext_count
$total_bytessent_smtpext[$_.sender] += ($ext_count * $_.totalbytes)
if ($_.eventid -eq "expand"){
$dl[$_.relatedrecipientaddress] ++
foreach ($address in $exch_addrs.keys){
$stat_rec = (new-object psobject -property (ConvertFrom-StringData (&$obj_table)))
$stat_recs += $stat_rec | select $props
$stat_recs | export-csv $outfile -notype
if (Test-Path $dl_stat_file){
$DL_stats = Import-Csv $dl_stat_file
$dl_list = $dl_stats |% {$_.address}
else {
$dl_list = @()
$DL_stats = @()
$DL_stats |% {
if ($dl[$_.address]){
if ([datetime]$_.lastused -le [datetime]$rundate){
$_.used = [int]$_.used + [int]$dl[$_.address]
$_.lastused = $rundate
$dl.keys |% {
if ($dl_list -notcontains $_){
$new_rec = "" | select Address,Used,Since,LastUsed
$new_rec.address = $_
$new_rec.used = $dl[$_]
$new_rec.Since = $rundate
$new_rec.lastused = $rundate
$dl_stats += @($new_rec)
$dl_stats | Export-Csv $dl_stat_file -NoTypeInformation -force
Write-Host "`nRun time was $(((get-date) - $today).totalseconds) seconds."
Write-Host "Email stats file is $outfile"
Write-Host "DL usage stats file is $dl_stat_file"
#Contact information
#[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
I would to target just one specific HT server in the environment, instead of all of them.
How do I do this?I believe the line I need to target is this line:
$hts = get-exchangeserver |? {$_.serverrole -match "hubtransport"} |% {$_.name
But I'm not entirely sure how to target just one specific HT server? -
Mount script for ext2 - mixing applescript and shell script
Hello
i want to do a .app using the ScriptEditor to get my external usb-disc mounted.
I tried ExtFS Manager before, but was not as happy with it.
so the basic idea is some kind of mixture of apple script and bash-shell script, but im not sure how to combine it.
shell script:
#!/bin/sh
sudo kextload /Library/Extensions/ext2fs.kext
mkdir ~/usb_music/
sudo mount -t ext2 -o nosuid,w,m=777,user /dev/disk1s5 ~/usb_music/
sudo chmod a+rwx ~/usb_music/
apple-script:
on run
try
do shell script ""
end try
end run
any ideas how to get it combined and working ?
best regards
fidel
MacBookPro 15,4" 1,83 GHz Mac OS X (10.4.8)is there a way to implement it in a way that normal users can work with sudo to mount the drive ?
kextload requires superuser privileges, so at some point some part of your script is going to need to run with elevated privileges.
It is possible to configure sudo to allow non-admins to run any other commands. You could either allow non-admins to to run kextload or, preferably, allow them to run your shell script.
man sudoers will give you the details on how to configure sudo to do this, which might be as simple as:
<pre class=command>ALL ALL=(ALL) /usr/local/bin/myscript</pre>
This will allow all users to run /usr/local/bin/myscript as root. -
Alert and Monitoring Scripts for Hyperion Applications
Hi Gurus,
Can you please provide me with any customized scripts for automating alert mails and monitoring activities pertaining to Hyperion Applications.
If not, can you please suggest some alternatives where i can get hold of some scripts. Any kind of help is greatly appreciated.
Also can someone please throw some light about the APPMULE and how to procure their services or we can get it for free trial.
Regards,
UdayAny kind of leads on this is really appreciated.
Regards,
Uday -
Hi All,
i got this following requiring requirement for the modifying a script for packing list,
this is the logic i have to include:
b. Remove the carton ID & box ID from the print out, the line item should just print the total delivery quantity, do not split the printing by different box ID or carton ID.
<b>i. Delivery Item= LIPS-POSNR
ii. Delivery Qty for Item = LIPSD-G_LFIMG= LIPSD-PIKMG</b>
<b>c. Add Total Boxes for each item, this should be a calculation field for each material HUMV4-MATNR, count how many handling unit VEKPVB-EXIDV has been used to pack the same material , output the total boxes for each delivery item.
</b>d. <b>Add Gross Weight for each item , retrieve data from LIPS-BRGEW</b>
e. Add Net weight to the print out, below the gross weight retrieve data from LIKP-NTGEW
f. For Net Weight & Gross Weight all convert to KG before output on the print out
can any body help me what the exact bussiness flow i have to follow and any necessary hints on this
Message was edited by:
ram gHi Ram,
You have to take the help of the functional consultant also and take the printout of the existing form for the packing list and note down all the changes to be done on the hard copy taken first.
then search in the script for the respective windows and for the respective fields in textelements of the script
One delivery may have multiple Handling Units
the link is VEPO-VBELN = LIPS-VBELN
from HU item table VEPO take the delivery no and link it with LIPS and LIKP table
What I understood is In Packing list the present data is coming from Delivery
but they wants to print certain things based on delivery and certain based on Handling Unit data
1.Remove the HU number from the print(Box id)-VEKP-EXIDV
2.Qty is printing based on HU remove that
now just print the qty based on delivery(sum of all items LIPS-LFIMG)
3. Add total boxes for each item(means no of HU's for each Delivery)
4. Take the Item wise gross weight from LIPS (brgew)
5.Take netweight from LIKP
6.Convert the unit of the Weight to KG
using a fun module UNIT_CONVERSION_SIMPLE
There may be already data fetching from the respective tables in the script check for the same and use
Otherwise to write the code you have to use the external subroutines to write some small program if extra coding is required to get the data from other tables
Hope this helps
Regards
Anji -
Creating SQL-Loader script for more than one table at a time
Hi,
I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
It looks like I can create SQL-Loader scripts for all the tables
or for one table at a time. If I want to create SQL-Loader
scripts for 5-6 tables, I have to either create script for all
the tables and then delete the unwanted tables or create the
scripts for one table at a time and then merge them.
Is there a simple way to create migration scripts for more than
one but not all tables at a time?
Thanks,
Prashant RaneNo there is no multi-select for creating SQL-Loader scripts.
You can either create them separately or create them all and
then discard the one you do not need. -
All,
Technical guy has copied std SAP script for physical inventory document and made minor changes .
Now where to attach this script , means in which ouput type .
Kindly advise.
regards
Message was edited by:
PVSHello Sandeep,
You need to assign the modified SAP form in OMBU transaction code.
Select the appropriate print program and assign there SAP form name.
Hope this will solve your query.
Regards
Arif Mansuri -
Hi Experts,
We have Goldengate environment and replicating the data between on source to Many target environments , both source and target environments are Oracle only, To monitor the process and exceptions we have used shell scripts on both the environments,
now we have new requirment for replicating the data between oracle to sql server , we have install goldengate on windows NT server for target environment , But in source we are using shell script for monitirong manger process and extract process , like if mgr or extract process is abended immediatly we will get the alert mail through mailx functionality, Now we need to use the same approach for windows sql serer as well , can any one please guide how to achive the monitoring requirment in windows environment as like unix/solaris, is there any option available in windows to writing the scritps like shell also sending the alert mails, Kindly suggest on this.
Thanks in Advance.
ATI get the scheduler to run this batch file, dbcgen.bat
rem Set Correct Starting Directory
D:
cd \gw8\admin\utility\dbcopy\win32
cscript //NoLogo dbcgen.vbs > dbcrun.bat
dbcrun.bat
and the dbcgen.vbs does the rest
' Script to generate DBCRun.Bat file
' Result needs to be something like this
' D:\gw8\admin\UTILITY\DBCOPY\WIN32\dbcopy.exe /i 12-01-2010 /w n:\gw5po
c:\gw5back
Dim cDate
cDBCPath = "D:\GW8\Admin\Utility\DBCopy\Win32\DBCopy.exe"
cSrcPath = "N:\GW5PO"
cTgtPath = "C:\GW5Back"
dDate = Now() - 1
'WScript.Echo dDate
cDay = cStr(Day(dDate))
if Len(cDay) = 1 then
cDay = "0" & cDay
end if
'WScript.Echo cDay
cMonth = cStr(Month(dDate))
if Len(cMonth) = 1 then
cMonth = "0" & cMonth
end if
'WScript.Echo cMonth
cYear = cStr(Year(dDate))
'WScript.Echo cYear
cDate = cMonth & "-" & cDay & "-" & cYear
'WScript.Echo cDate
WSCript.Echo cDBCPath & " /i " & cDate & " /w " & cSrcPath & " " & cTgtPath
set cDate = Nothing
You can add/alter the various startup flags to suit yourself
Cheers Dave
Dave Parkes [NSCS]
Occasionally resident at http://support-forums.novell.com/ -
Deployment scripts for webservices in SOA.
Hi All,
i want to write ant scripts for WEB Services in my project. but my Dev, Test and production servers all are high available servers. in need to write scripts for cluster environment. as of now i write the scripts for my local server and they are working fine. can anyone give me the idea how to point Web services to a particulr container.
Thanks in Advance
Regards
HariCan this help:
http://orasoa.blogspot.com/2009/04/new-oracle-soa-build-server-osbs.html
My famous Oracle SOA Build Server :-)
Marc -
Script for generating pacman html info
Hi folks!
I created a small python script for parsing pacman outputs and generate a html document
Is under development and not very useful at the moment but I want to share my progress
Output example: http://tulur.com/pkginfo/example.html
(is in spanish because my locale conf, the output is in your language)
http://tulur.com/archlinux-pkginfo
I'm not a programmer, probably can be improved
Last edited by bungow (2010-03-08 23:05:01)great work, dude.
Thanks for sharing.
Maybe you are looking for
-
NullPointerException in JDeveloper 10.1.3 console...
Hi, I have been getting the following exception while using JDeveloper j2ee edition developer preview release with version number - 10.1.3.0.2.223. I am running it with JDK version 1.4.2_04-b05 in a WIN-XP Professional machine having 512MB RAM. I cou
-
The note on blocking the change comes the next time I open Firefox rather than when I first attempt to change the setting. It occurs whether I drag the setting across to the home symbol or go into preferences and set it there
-
Adobe CD came with Fujitsu Scan Snap
I bought a Fujitsu scan snap and an adobe CD came with it, but my laptop does not have a cd. I need to install. The cd package lists a serial number, but I do not see a product code anywhere. The adobe website seems to require a product code. Any
-
Javascript:do_default not working in Firefox 4
I am using CA Unicenter at work. It is a help desk program that lets you click on job number and the job pops up in a new screen This works in Firefox 3.6 but not in 4
-
DB adapter - "/ns2:OutputParameters/ns2:X_OUTPUT" is empty at line 84
Hi! I created a simple db procedure as below: create or replace procedure APPEND_HI (P_INPUT IN VARCHAR2 ,X_OUTPUT OUT VARCHAR2) is begin X_OUTPUT := 'Hi' || P_INPUT; end; I created a very simple DB Adapter for the above procedure. And in my BPEL pro