Clear Command Line
Hi all would like to know if there is anyway i can clear the stuff already present in the command line promt using java.
Thanks
No.
Shell commands must be executed by the shell. Your shell is already executing a command - your application. So they can't execute something else.
You can just print out a bunch of blank lines.
Similar Messages
-
Clear Command Line Console from Java
Is there a way to clear the dos/shell console screen from a java program (the same way as cls would do in dos ir clear would do in unix) without making a Runtime.exec call??
Thanks for your time
wwe8What console window are you talking about?
1- You might be starting a java application in a console window.
2-Or it might be another console window.
3-You might be starting a console window in java via Runtime.exec().
For 1 and 2 you would need a JNI, platform specific solution. I believe the java testing tools do this, so if you got one of those it might provide an interface for this.
If 3, then you would use the input stream to pass the command to the window. -
Can I Clear all history from command line?
Is there a way to simulate clearing all history
Tools -> Clear Recent History -> Everything
from the command line in Windows 7?
I'm writing test automation and this would come in handy when running my testsHello
"C:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://browser/content/preferences/sanitize.xul"
UPDATE : '''the next is the correct :'''
"C:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://browser/content/sanitize.xul"
forget the first
thank you -
Command line to clear cache?
JRE 1.4.2_04
I need to clear the cache on about 2000 machines and would prefer not to visit each one physically. Is there a command line parameter I can feed to jpicpl32.exe to trigger the cache clear? I've seen several threads asking about this but it does not seem to have been addressed as other solutions were found. However, I have no access to the server side of the application, so my only option is to clear the cache.
can this be done?Hi,
OBIEE Cursor Cache clear from Dashboard Java Script
OBIEE Cursor cache is normally cleared from the Administration - Manage Sessions Screen...
Here is a way that a piece of java can be embedded into a dashboard and call an xframe so you cant see it being called and clear the OBIEE Cursor cache - Presentation cache in effect.
1. Just insert a text box into Dashboard - Tick the "Contains HTML Markup"
2. Paste the script below into the text box
<script language="javascript">
document.write(
"<iframe width=0px height=0px src=" +
document.location.href.match(/^[^?]+/) +
"?ManageSessions" +
document.location.href.match(/&_scid=[^&]+/) +
"&Action=CloseAllCursors&Done=saw.dll%3fSessions',{ensureFreshUrl:true});return false;')></iframe>"
</script>
Voila - when ever you click on the dashboard or refresh it the cursor cache will get cleared.
Please refer the below links for more information on this.
What Is Presentation Services Cache In Fact?
http://prolynxuk.com/blog/?p=496
how to seed n clear cache of obiee
http://obiee101.blogspot.in/2008/03/obiee-manage-cache-part-1.html
How to clear the cache daily automatically
http://obiee10grevisited.blogspot.in/2012/02/cache-in-obiee.html
Award points it is useful.
Thanks,
Satya -
Clear screen in "Run SQL Command Line" causes the utility to dump in Window
Just for your notice... I have not checked if i can reproduce this on Linux platform or on second node running Windows XP Pro.
But if I use "Run SQL Command Line" utility and do
clear screen
The utility dumps, (not the database though only the utlility)
Maybe some other people could confirm if this findings is a bug or not and if it is a port specific issue with Windows XP only.
Kindly Rgds
/Ulf, Kentor IT SwedenTracking info is in
Re: SQL*Plus generated Program Error
-- cj -
Seized Role but not able to Clear metadata via Command line
Hi All,
I have setup a lab in my home for practice and tried to demote a DC in my environment through command line , after transferring a Roles which was on the DC to other,
i tried below mention command to clean up metadata and remove a Selected DC.
1 Ntdsutil ,2 ntdsutil:roles,3 Fsmo maintenance: Connection,4 server connection: connect to server dc3.,5: server connection: quit,6: fsmo maintenance: Seize RID Master(Clicked YES),7: fsmo maintenance: Quit, 8 Ntdsutil: Quit
After seizing Roles i tried to clean up metadata, below are the step which i have taken to perform it
1ntdsutil, 2ntdsutil:metadata cleanup,3 metadata cleanup : connection,4 server connections: connect to server dc3,5 server connection : quit, 6 metadata cleanup: select operation target. , 7 select operation target :select domain 0,8 select operation
target: select sites 0, select operation target : select server 3 , 9 select operation target : Quit, 10 metadata cleanup: remove selected server
After reaching to the last step no 10. i received a error stating that to clean up the data please put server online.
Could anyone tell me what step did i missed as all the servers where online and roles was seize successfully, also would like to tell you all that once i go to Active directory sites and services and check the servers the default sites connection are lost
on DC1,DC2,DC3.
Please let me know the correct method to perform metadata cleanup.
Also let me know what other prerequisite should i take to perform apart from transferring roles and Global Catalog should be there on other DC
Thanks
Atul SrivastavaHi Atul,
Metadata cleanup is a required procedure after a forced removal of Active Directory Domain Services (AD DS). Metadata cleanup removes data from AD DS that identifies a domain controller to the replication system.
We can clean up metadata by using GUI tools, command line, or a script.
Regarding how to clean up server metadata, the following article can be referred to as reference.
Clean Up Server Metadata
http://technet.microsoft.com/en-us/library/cc816907(v=ws.10).aspx
Best regards,
Frank Shen -
How to delete more than one workbook from command line
Hi, I'd like to delete more than one workbook from command line:
The following syntax, it doesn't work....but I followed the manual instructions:
dis51adm.exe /connect eul/eul@uatdb /delete /workbook "ALE_TEST_1, ALE_TEST_2" /eul eul /log D:\Ale\delete.log
where:
eul/eul@uatdb: is the db’s schema/user where the EUL is installed;
/delete "ALE_TEST_1, ALE_TEST_2": is the command to delete the workbooks, specified inside the “” (with the relative path)
/log D:\Ale\delete.log: is the command to write a log’s file named “delete.log” to track the action
The log file says:
22/4/2008 4:00:26 μμ
dis51adm.exe /connect /delete /workbook ALE_TEST_1, ALE_TEST_2 /eul eul /log D:\Ale\delete.log
Document ALE_TEST_1, ALE_TEST_2 not found in EUL.
Internal EUL Error: ObjectNotFound - Can't find EUL element
There are 0 eul elements to be deleted.
Completed deleting eul elements.
22/4/2008 4:00:29 μμ
Anyone can tell me how is the right syntax ?
Thanks in advance
AlexHi Rod
I was coming to that conclusion myself but wanted to wait until the other avenues had been exhausted first - aka making sure of the workbook names.
I checked through all of the command line documentation and read nothing which clearly indicated that only one workbook could be processed at a time, other than the fact that the syntax says workbook and not workbooks, which could be a big clue.
I think you are right though in that it has to be one at a time, which would be a pain.
Best wishes
Michael -
Design Question - Command Line Argument Processor
Folks,
I'm a java and OO newbie... I've been going through Sun's java tutorials
I've "enhanced" Sun's RegexTestHarness.java (using Aaron Renn's gnu.getopt package) to expose the various Pattern.FLAGS on the command line.
Whilst it does work the arguement processing code is awkward so I want to rewrite it... but I'm pretty new to OO, so before I spend days hacking away at a badly designed ArgsProcessor package I thought I'd run my deign ideas past the guru's... and atleast see if my ideas are impossible, or just plain bad.
Any comments would be greatly appreciated.
The starting point is RegexTestHarness.java/**
*@source : C:\Java\src\Tutorials\Sun\RegexTestHarness.java
*@compile : C:\Java\src\Tutorials\Sun>javac -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness.java
*@run : C:\Java\src\Tutorials\Sun>java -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness -i
*@usage : RegexTestHarness [-vcixmslud]
//http://java.sun.com/j2se/1.5.0/docs/api/java/io/package-summary.html
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
//http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/package-summary.html
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.regex.PatternSyntaxException;
//http://www.urbanophile.com/arenn/hacking/getopt/gnu.getopt.Getopt.html
import gnu.getopt.Getopt;
import gnu.getopt.LongOpt;
* private command line options interpreter class
class Options {
public boolean verbose = false;
public int flags = 0;
public Options(String progname, String[] argv) throws IllegalArgumentException {
LongOpt[] longopts = new LongOpt[9];
longopts[0] = new LongOpt("verbose", LongOpt.NO_ARGUMENT, null, 'v');
longopts[1] = new LongOpt("CANON_EQ", LongOpt.NO_ARGUMENT, null, 'c');
longopts[2] = new LongOpt("CASE_INSENSITIVE", LongOpt.NO_ARGUMENT, null, 'i');
longopts[3] = new LongOpt("COMMENTS", LongOpt.NO_ARGUMENT, null, 'x');
longopts[4] = new LongOpt("MULTILINE", LongOpt.NO_ARGUMENT, null, 'm');
longopts[5] = new LongOpt("DOTALL", LongOpt.NO_ARGUMENT, null, 's');
longopts[6] = new LongOpt("LITERAL", LongOpt.NO_ARGUMENT, null, 'l');
longopts[7] = new LongOpt("UNICODE_CASE", LongOpt.NO_ARGUMENT, null, 'u');
longopts[8] = new LongOpt("UNIX_LINES", LongOpt.NO_ARGUMENT, null, 'd');
Getopt opts = new Getopt(progname, argv, "vcixmslud", longopts);
opts.setOpterr(false);
int c;
//String arg;
while ( (c=opts.getopt()) != -1 ) {
//arg = opts.getOptarg();
//(char)(new Integer(sb.toString())).intValue()
switch(c) {
case 'v': verbose = true; break;
//http://java.sun.com/docs/books/tutorial/essential/regex/pattern.html
case 'c': this.flags |= Pattern.CANON_EQ; break;
case 'i': this.flags |= Pattern.CASE_INSENSITIVE; break;
case 'x': this.flags |= Pattern.COMMENTS; break;
case 'm': this.flags |= Pattern.MULTILINE; break;
case 's': this.flags |= Pattern.DOTALL; break;
case 'l': this.flags |= Pattern.LITERAL; break;
case 'u': this.flags |= Pattern.UNICODE_CASE; break;
case 'd': this.flags |= Pattern.UNIX_LINES; break;
case '?': throw new IllegalArgumentException("bad switch '"+(char)opts.getOptopt()+"'"); //nb: getopt() spits
public String toString() {
StringBuffer s = new StringBuffer(128);
if (verbose) s.append("verbose, ");
if ((this.flags & Pattern.CANON_EQ) != 0) s.append("CANON_EQ, ");
if ((this.flags & Pattern.CASE_INSENSITIVE) != 0) s.append("CASE_INSENSITIVE, ");
if ((this.flags & Pattern.COMMENTS) != 0) s.append("COMMENTS, ");
if ((this.flags & Pattern.MULTILINE) != 0) s.append("MULTILINE, ");
if ((this.flags & Pattern.DOTALL) != 0) s.append("DOTALL, ");
if ((this.flags & Pattern.LITERAL) != 0) s.append("LITERAL, ");
if ((this.flags & Pattern.UNICODE_CASE) != 0) s.append("UNICODE_CASE, ");
if ((this.flags & Pattern.UNIX_LINES) != 0) s.append("UNIX_LINES, ");
if (!s.equals("")) {
s.insert(0,"{");
s.replace(s.length()-2,s.length(),"");
s.append("}");
return(s.toString());
* public regular expression test harness
public class RegexTestHarness {
public static void main(String[] argv){
BufferedReader in = null;
try {
Options options = new Options("RegexTestHarness", argv);
//System.out.println(options);
in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("RegexTestHarness");
System.out.println("----------------");
System.out.println();
System.out.println("usage: Enter your regex (none to exit), then the string to search.");
System.out.println("from: http://java.sun.com/docs/books/tutorial/essential/regex/index.html");
String regex = null;
while(true) {
try {
System.out.println();
System.out.print("regex: ");
regex = in.readLine();
if (regex.equals("")) break;
Pattern pattern = Pattern.compile(regex, options.flags);
System.out.print("string: ");
Matcher matcher = pattern.matcher(in.readLine());
if (options.verbose) System.out.printf("groupCount=%d%n", matcher.groupCount());
while (matcher.find()) {
System.out.printf("%d-%d:'%s'%n", matcher.start()+1, matcher.end(), matcher.group());
//start is a zero based offset, but one based is more meaningful to the user, Me.
} catch (PatternSyntaxException e) {
System.out.println("Pattern.compile("+regex+") " + e);
} catch (IllegalStateException e) {
System.out.println("matcher.group() " + e);
} //wend
} catch (IllegalArgumentException e) {
System.out.println(e);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {in.close();} catch(Exception e){}
}... I haven't got a clue if it's possible, but I want my ArgProcessor.getArgs method to return a hash (keyed on name) of Objects of the requested "mixed" types... for example a boolean, a String, and a String[].
I want the client code of my new fangled ArgProcessor to look something like this:class testArgProcessor {
public static void main(String[] args) {
//usage testArgProcessor [-v] [-o outfile] file ...
try {
HashMap<Arguement> args = ArgProcessor.getArgs( args,
{ //hasArg value, letter, name, type, value, default
{hasArg.NONE, 'v', 'verbose', 'boolean', true, false}
, {hasArg.REQUIRED, 'o', 'outfile', 'String', null, null}
, {hasArg.ARRAY, '', 'filelist', 'String[]', null, null}
if (args.outfile != null) {
out = new BufferedWriter(......);
} else {
out = System.out;
for (String file : filelist) {
if (args.verbose) System.out.println("processingFile: " + file)
... process the file ...
} catch (IllegalArgumentException e) { //from ArgProcessor.getArgs()
System.out.println(e);
}Paul,
What are you trying to do, and why?Sorry I should have made myself a lot clearer...
What I'm really trying to do is learn Java, and good OO design... so I'm going through the Sun tutorials, and I see that the standard Pattern class has a few handy switches, so I wanted to expose them to the command line... which I did using the handy gnu.getopts library...
Are you trying to write a general purpose
command-line processing library?Yes, I'm trying to write a general purpose command-line processing library? one that's "cleaner" to use than the gnu.getopts.
I've been hacking away for a few hours and haven't gotten very far... what I have discovered is that gnu.getopts class is in fact very clever (surprise surprise)... and my idea to "simplify" it's usage leads to loss of flexibility. So, I'm starting to think I'm completely barking up the wrong tree... and that I was somewhat vanglorious thinking that I (a newbie) could improve upon it.
Are you trying to write a command-line app to do
pattern matching?Yep, That too... That's where I started... with an example from Sun's tutorials... where it's used to parse a long series of patterns and strings, exploring java's regex capabilities.
I think I'll just give up on "improving" on gnu.getopts... my options processing code is ugly, and so be it.
Thanx for your interest anyway.
Keith. -
Running FlexUnit tests from command line
Sorry if that has been posted before: I searched best I could and nothing came up.
I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
I looked into at least how to build something from the command line, I found this:
http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
Can't get past this error:
Buildfile: /Users/dbanks/build_test.xml
BUILD FAILED
Target "FlexUnitApplication" does not exist in the project "null".
Total time: 0 seconds
Adobe Flash Builder 4:
An error has occurred. See the log file
/Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
Plus, even if I got this going, I am just building the swf. I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
FWIW, the script/xml I am using to try to build:
build_test.xml:
<?xml version="1.0"?>
<project default="main">
<target name="main">
<fb.exportReleaseBuild project="NightclubMogul" />
</target>
</project>
execute_build_test.sh:
WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
# works with either FlashBuilder.app or Eclipse.app
"/Applications/AdobeFlashBuilder4" \
--launcher.suppressErrors \
-noSplash \
-application org.eclipse.ant.core.antRunner \
-data "$WORKSPACE" \
-file "/Users/dbanks/build_test.xml" FlexUnitApplication
I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere. I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
Any help would be great: getting the tests to build from command line, then getting them to run.C:\>sqlplus @myscript
That would be the easiest variation
C:\>sqlplus user/passwd@tns_alias @myscript
would be an often used variation
And then there is of course the version with parameter passing:
C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
Dunno about MSBuild -
VBScript which is called with Arguments from Command Line
Hi There.
I have been tasked to create a VBScript which needs to accomplish the following:
It needs to be called from a command line using 4 different arguments, the arguments in order as follows:
- Drive letter including colon
Warning threshold in percentage
Warning threshold in GB remaining
Recipient email address
I need to be able to set up a scheduled task, to run this script, but at the same time I need to be able to specify multiple drive letters as separate steps but on a single task. The script needs to automatically run every 4 hours, starting at 06:00AM
in the morning and running no later than 22:00 at night.
The end results, need to then be e-mailed to the Recipient which is specified in Argument (3).
Following is my current script, it is not complete as I am currently pulling my hair out due to having a lack of knowledge of VBScripting.... :( The current script also loops every 10 minutes or so, and uses the incorrect way of sending the results,
we would like to use POSTIE.EXE to send the mail as we would want to eliminate web traffic (Microsoft Schema's) in this script.
=====================================================================================
Const emailFrom = "default_from_email_address_comes_here" 'From email address
Const ExchangeServer = "ExchangeServerName_comes_here" 'Enter your Exchange server name here (FQDN)
Const WaitTimeInMinutes = 10 'Wait time between loops. This is will be in minutes
Dim WshShell, objArgs, strIP, objWMIService, LogicalVolumes, strDriveLetter
Dim objItem, strDriveName, IntCapacity, IntFree, DiskFreePct
Dim strIgnoreFlag
Dim strMessage, IntStatistic
on error resume next
strDriveLetter = WScript.Arguments(0) 'This is the drive letter which you want to monitor on the localhost
DiskFreePct = WScript.Arguments(1) 'This is the threshold percentage of free space
ThresholdGB = WScript.Arguments(2)
Recipient = WScript.Arguments(3) 'This is where the e-mail needs to be sent to
If Err.Number <> 0 Then
msgbox "You did not supply the arguments after calling the VBS file:" & vbcrlf & "<Drive Letter, eg: C:>"& vbcrlf & "<Warning Threshold in Percentage> "& vbcrlf &"<Warning
Threshold in GB Remaining> "& vbcrlf &"<Recipient E-Mail Address>"
WScript.Quit
End If
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo WshNetwork.ComputerName
arrServerList = array(WshNetwork.ComputerName) 'This is where your localhost will be used as the query
Do until i = 2
'Clear the message variable
strMessage = ""
'Poll the array of servers
PollServers(WshNetwork.ComputerName)
'Email if there is a message
if strMessage <> "" then
EmailAlert(strMessage)
end if
'The script will loop for now just for testing. Uncomment the line that follows the loop logic to cancel the loop.
WScript.Sleep(WaitTimeInMinutes*60000)
'i = i + 1
Loop
Sub PollServers(arrServers)
on error resume next
for each Server in arrServers
set objSvc = GetObject("winmgmts:{impersonationLevel=impersonate}//" & Server & "/root/cimv2")
set objRet = objSvc.InstancesOf("win32_LogicalDisk")
for each item in objRet
if item.DriveType = 7 then
end if
if item.FreeSpace/item.size <= AlertHigh then
strMessage = strMessage & UCase(strPC) & " Drive '" & item.caption & "' is low on disk space! There are " & FormatNumber((item.FreeSpace/1024000),0)
& " MB free" & vbCRLF
end if
next
next
set objSvc = Nothing
set objRet = Nothing
End Sub
Sub EmailAlert(Message)
on error resume next
Set objMessage = CreateObject("CDO.Message")
with objMessage
.From = emailFrom
.To = Recipient
.Subject = "Server " & WshNetwork.ComputerName & " is low on Disk Space"
.TextBody = Message
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ExchangeServer
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Update
.Send
end with
Set objMessage = Nothing
End SubI've managed to get the script fully working as required.
================================================================
Const emailFrom = "your_email_here" 'From email address
Const ExchangeServer = "exchange_server_name" 'Enter your Exchange server name here (FQDN)
Const WaitTimeInMinutes = 240 'Wait time between loops. This is will be in minutes
Dim WshShell, objArgs, strIP, objWMIService, LogicalVolumes, strDriveLetter
Dim objItem, strDriveName, IntCapacity, IntFree, DiskFreePct
Dim strIgnoreFlag
Dim strMessage, IntStatistic
Dim DrivePercentage
Dim DriveSpaceRem
Dim mbFreeSpace
Dim intFreeSpace
Dim UsedPercentage
on error resume next
strDriveLetter = WScript.Arguments(0) 'This is the drive letter which you want to monitor on the localhost
DiskFreePct = WScript.Arguments(1) 'This is the threshold percentage of free space
ThresholdGB = WScript.Arguments(2)
Recipient = WScript.Arguments(3) 'This is where the e-mail needs to be sent to
If Err.Number <> 0 Then
msgbox "You did not supply the arguments after calling the VBS file:" & vbcrlf & "<Drive Letter, eg: C:>"& vbcrlf & "<Warning Threshold in Percentage> "& vbcrlf &"<Warning Threshold in GB Remaining> "&
vbcrlf &"<Recipient E-Mail Address>"
WScript.Quit
End If
strComputer = "."
'WScript.Echo strComputer
Set WshNetwork = WScript.CreateObject("WScript.Network")
'WScript.Echo WshNetwork.ComputerName
arrServerList = array(strComputer) 'This is where your local host will be used as the query
Do until i = 1
'Clear the message variable
strMessage = ""
'Poll the array of servers
PollServers strComputer,strDriveLetter
'Email if there is a message
if strMessage <> "" then
EmailAlert(strMessage)
end if
'The script will loop for now just for testing. Uncomment the line that follows the loop logic to cancel the loop.
'WScript.Sleep(WaitTimeInMinutes*60000)
i = i + 1
Loop
Sub PollServers(strComputer,strDriveLetter)
Selectstring = "Select * from Win32_LogicalDisk Where DeviceID = '" & strDriveLetter & "'"
on error resume next
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery(Selectstring)
For Each objItem in colItems
if objItem.FreeSpace/objItem.Size * 100 <= DiskFreePct or mbFreeSpace <= ThresholdGB then
DrivePercentage = FormatNumber(objItem.FreeSpace/objItem.Size *100,0)
DriveSpaceRem = FormatNumber((objItem.FreeSpace/1024000),0)
intFreeSpace = objItem.FreeSpace
mbFreeSpace = intFreeSpace / 1024 / 1024 / 1024
mbFreeSpace = round(mbFreeSpace,0)
intTotalSpace = objDisk.Size
UsedPercentage = 100 - DrivePercentage
strMessage = strMessage & " "
end if
Next
End Sub
Sub EmailAlert(Message)
on error resume next
Set objMessage = CreateObject("CDO.Message")
with objMessage
.From = emailFrom
.To = Recipient
.Subject = "" & WshNetwork.ComputerName & ": Alert " & Now & " -> " & UCase(strDriveLetter) & " fill level = " & UsedPercentage & "%, Space Remaining = " & mbFreeSpace & "
GB"
.TextBody = Message
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ExchangeServer
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Update
.Send
end with
Set objMessage = Nothing
End Sub
'WScript.Echo "done" -
Receiver file adapter command line
hi,
i am just wondering how to use command line on receiver file adapter.
i am not clear how to use this.
please modify on the following command!
anyway, i have to call java application after put some files by receiver file adapter.
cmd.exe %Fjava ./javacalltest
it did not work..
please guide me.
Command Line
An operating system command specified here is executed before or after a file has been successfully processed. The default value is an empty character string (no command).
When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
%f (file name)
%F (absolute file name including path)Hi Ogawa and Laurence,
Have look at :: /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
1)Windows batch Commands::
http://labmice.techtarget.com/articles/batchcmds.htm
2)Linux:
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
Note:: First try using the comands on O.S if they work then only use them in Adapters.
Hope it will help.
regards
Piyush
Pl:reward some points if it is usefull. -
How to run command line argument programe
Hi guys, I am doing pass command line argument programe in java but I don't know how to run this programe. Path for this programe in my my computer is C:\Users\Desktop\Mainjava\mycode\CommandProgjava*
{code/}
public class CommandProg
public static void main(String[] args)
System.out.println("d");
for (int i = 0; i < args.length; i++)
System.out.println(args);
{code/}
Where i need to go and what command i need to give so i can execute this programe(I am using window vista). I only know i have to give
this command some where CommandProg arg1 arg2 arg3 arg4. Output should be
Output:
arg1
arg2
arg3
arg4
Please help me, Thanks in advance.
Edited by: JayVirk on Dec 30, 2007 11:33 AMJay,
Your question isn't very clear, hence Joerg's well meaning but irrelevant advise.
Do you mean:
I've written a simple program in java which echos
it's command-line arguments to back to the console.
Here's my code:
package forums;
public class ArgsEchoer
public static void main(String[] args) {
for (String arg : args) {
System.out.println(arg);
But can't figure out how to compile and run the program.
I'm using winblows shista, and it's cr@p.
Please help me, Thanks in advance.So... where are you at? Have you installed the JDK (java development kit)? Which version? Is your path set? Is your classpath set?
Start here: http://java.sun.com/developer/onlineTraining/new2java/ -
How to run command line tool in my program???
Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them accept some command line params.The problem is that how could i integrate the tools in my own program,like JBuilder or some other IDE,you configure the params and compile and run in the IDE which don't need to open a command line prompt.Hope i have got my question clear:)
Best regards..jesperdj ,thanks:)
actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
robin -
Command Line Parameters for Silent Install with Status for BI4.0 Products
For the XI3.1 product installations, which clearly leveraged MSIEXEC installation files, it was possible to use the /qb+ command line parameter to trigger a silent install which showed the progress of the installation with a final prompt to acknowledge the completion of the installation.
For the new BI4.0 installation package, it's not clear how to trigger a silent installation which also shows the installation progress. The installation guide describes using -q in the command line to run a silent installation, or leveraging a response.ini file to trigger a silent install, but in neither case does it show how to modify the silent installation command to enable a display of the installation progress.
Does anyone know the syntax, either command line or embedded in a response.ini file, to trigger a silent installation for the BI4.0 products which ALSO shows the progress of the installations?
Thanks,
JoshYes, I've tried the same switch that I used for the XI3.1 installations, namely "/qb". In XI3.1 I was able to use this switch either directly in the MSIEXEC command line or in the Response.ini file as "QUIET=/qb". In either case, this switch resulted in a silent install that showed a progress bar window for the installation, completing with a confirmation prompt indicating that the installation had completed.
Neither approach works with the BI4.0 installation packages. My suspicion is that SAP has switched to a different installation engine as I can't find the typical .msi installation files that would indicate this is a MSIEXEC installation. I'm hoping someone knows what type of installation engine is being used and what the switching syntax is for silent installs. But it can't be a completely transparent silent install (I know how to do this); it must provide an option to show an installation progress bar.
Thanks,
Josh -
Different msgid shown in /var/adm/message as opposed to command line.
I've been trying to investigate an issue of how the /var/adm/messages alarms which has a message ID is different from a command line msgid output but have not been successful.
The test I have done is as follow:
logger -p local0.error -t TEST "Test Alarm for message ID"
The output I get in /var/adm/messages is :
May 3 14:00:28 hostname TEST: [ID 702911 local0.error] Test Alarm for message ID
However, when I compare the ID generated with /usr/sbin/msgid, the ID seems to be different.
bash-3.00# echo "Test Alarm for message ID" | msgid
*231001* Test Alarm for message ID
As you can see, the ID generated is different. Because of this, it's causing some issues on the alarm monitoring system and everything seems to fall under ID 702911. Anyone know how I can solve this problem?
Thanks in advance.The source code for logger is available:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/logger/logger.c
You could try fixing it... Looking at the syslog() calls it clearly has "%s" as one of the options. I guess you could find another piece of source code that makes syslog() calls and figure out what construct "should" be there.
Maybe you are looking for
-
At night, as soon as I plug my iphone to be recharged, my iphone starts behaving anomaly. It is like somebody has taken control of it. I see the screens moving, music starts playing and then stopping, etc. I have noticed that several nights. What
-
Apple TV not responding error message
Hi, we bought our ATV probably 6-8 months ago and its been great - not one issue. We bought ATV Flash recently, installed it and noticed that we got the "Apple TV myATV is not responding, blah blah make sure firewalls allow port 3689" message. I don'
-
Network applications, network applications
I have Office:Mac 2011 running on my laptop with a single user licence; I also have an iMac desktop that I tend to use at home (bigger screen etc.) Is it possible to run Office without actually installing it on the iMac, using the laptop as a server
-
Should I purchase iPhone or Blackberry for this task?
I specifically want a phone to receive emails (maybe 4 per day) and access websites to enter data (say 4 times per day). I've been told that for those who want to do this regularly the iPhone freezes and is slower than the Blackberry. Almost all spok
-
I want to watch tv on my apple i phone how
i want to block unwaned calls and message and charger of my phone got messed up can u send me new charger with the usb cable my cell no is 9811066020 and how to load video clips and songs