General question: How to execute a batch input using different user name?
Hi everyone,
I would be very grateful if someone could tell me how to execute a batch input from source code using a differente username so the batch input is executed with different permissions.
For example, I log on with:
Username: A
, but I'd like to execute a batch input using the rights and permissions of user B.
Thanks in advance and best regards.
Ben.
If you are calling the BDC in a program, create a job to run the program and specify the user you want each program to run under.
Similar Messages
-
How to execute a batch file on different remote server using TFS Build
I have a build server and have 2 web servers. I am deploying using TFS Builds. Now, I have a requirement to execute a batch file which is kept on these 2 web servers. i.e. C:\MyBatch\CreateMe.bat
After my build is successful, I need to execute this batch from the build server.
Note, I cannot make any shared folder.Hi Sameer,
Thanks for your post.
What’s the version of your TFS?
How do you deploy solution using TFS Build, run MSBuild deploy command or using Release Management?
That C:\MyBatch\CreateMe.bat file stay on your two web server machines separately?
If you want execute this bat file on your two web server machines separately using build process template, you need configure your web server machine as build agent, then add the InvokeProcess activity in build process template to run the bat file on build
agent machine after build, please refer to Hari’s answer reply in this post:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/b8bcb19f-1296-441c-8356-e701b949445a/tfs-2010-how-to-execute-a-batch-file-after-build?forum=tfsbuild.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to execute a transaction with a different user from the logged user?
Hello Experts!
I'm trying to find out a solution about this scenario: our users need to release a Purchase Order (ME28) and/or a Service Entry Sheet (ML85) in SAP from a WEB based application through TIBCO, but the requirement is to execute this operation with the same SAP User name of the user (with his authorization) and not with the TIBCO user that is logged to SAP.
Is there someone that could suggest me a real time solution and how to develop it? I really appreciate your contribute and I'm at your disposal for any further information.
Thank you very much!
AlessandroHi Rob!
Thank you for your help, but I can't apply this solution, because we need to execute the transaction with a specific user name and not a generic user, besides our user have different authorization, for example the user Mr. Rossi can release only his Purchase Order but not the PO of another user Mr. Bianchi. Moreover we need to see the PO released/modified from a specif user name. So this is our constraint.
Bye Ale. -
How to execute XML batch commands using SharePoint Web services or Client Object Model
Hi,
I have a requirement to execute some batch commands to update SharePoint View Style, how can i do it using SharePoint webservices or SharePoint Client Object model.
I need to execute the following Batch command over a particular web.
<Method ID="UpdateView">
<SetVar Name="Cmd">UpdateView</SetVar>
<SetList Scope="Request">{GUID of List}</SetList>
<SetVar Name="View">{GUID of View}</SetVar>
<SetVar Name="ViewStyle">6</SetVar>
<SetVar Name="RowLimit">100</SetVar>
<SetVar Name="Paged">TRUE</SetVar>
</Method>Hi
I tried it already... But UpdateView Method in the Views.asmx and Lists.asmx, both are not supporting for updating the style of the view (like Boxed, Newsletter...).
If you have any code sample which will do this job with any of the SharePoint web services, please share it.. -
How to execute a batch file using javascript
Hi,
I dont know java. i have a batch file to do my task. Im designing the front end with HTML.Can anyone tell the command to execute batchfile using javascript
Message was edited by:
viswanath_javaJava and not JavaScript are not the same thing or even close to the same thing. You appear to be in way over your head. It might be a good time to fess up to your employer that you are underqualified.
Apart from the JavaScript faux pas your question is also lacking because
- you don't identify what this batch file is or does or needs to execute in
- it is very difficult to understand how the front end for this will be HTML
It seems you may one day want something like a Servlet. But you are long way from implementing this solution. -
How to execute classes that reside in different user's schema
I have to load a class in App1 and need to register a Java Stored Procedure in App2. This procedure refers class loaded in App1. Finally the procedure is to be executed from app1 user.
I am working with oracle database. It has two schemas App1 and App2.
I have a test class:
public class myTest {
public static void test(int a, long b)
System.out.println("A : "+a);
System.out.println("B : "+b);
I have loaded the class in APP1 schema as follow
loadjava -user app1/app1 -oci8 -resolve –grant app2 myTest.class
Login to SQLPLUS by App1
Then created Java Stored procedure in APP2
CREATE OR REPLACE PROCEDURE APP2.Test( a IN NUMBER, b IN NUMBER) IS LANGUAGE JAVA NAME 'myTest.test(int,long)';
Now when I call this procedure, it gives error mentioned below
SQL> Call App2.Test (1, 2);
ERROR at line 1:
ORA-29540: class myTest does not exist
waithing for your input:)
Regards,
AnilHi,
Thanks for your suggestion, but I am not able to resolve the issues as yet. So could you please elaborate on it.
Our main concerned is to port an application running on DB2, to Oracle database. This application has multiple schemas, we have to load classes in one schema and refer theses classes from other schema. As explained in the query mentioned above.
As mentioned in your article, to grant permission to others schemas while loading jar. I have tried this also. Following is the command we used to load classes in APP1 and grant permission to APP2.
loadjava -user app1/app1 -oci8 -resolve -grant app2 myTest.class
But when referring theses classes to create java stored procedure in schemas other than APP1, it says class doesn’t exit.
The same things work fine in DB2 but now working in Oracle.
Note: The application uses single jdbc connection, the connection is shared between different modules; this is achieved by making connection static. So we cannot load jar in all the schemas, as if we load jar in all the schemas then we won’t be able to share static variables.
Please elaborate your suggested solution.
Thanks -
How to execute a sequence without using an User Interface
Hi,
I have programatically generated a TestStand Sequence File. I used C# and the TestStand API. I opened the .seq file in the default TestStand User Interface and the Sequence File runs perfectly.
However, when I created a NewExecution using the Engine object created in the porgram, it seems that the sequence never starts execution. Please look at the following code snippet:
// TSStep and TSSequence was created before
TSSequence.InsertStep(TSStep, 0, StepGroups.StepGroup_Main); SequenceFile TSSequenceFile = TSEngine.NewSequenceFile();
TSSequenceFile.InsertSequenceEx(0, TSSequence);
TSSequenceFile.Save("SeqGen.seq"); Execution TSExecution = TSEngine.NewExecution(TSSequenceFile, "Seq_0", null, false, ExecutionTypeMask.ExecTypeMask_Normal, System.Type.Missing, System.Type.Missing, System.Type.Missing);while (TSSequenceFile.IsExecuting == true) ; // this flag never changes to false
TSEngine.ReleaseSequenceFileEx(TSSequenceFile, 0);
I know the sequence is not being executed because a COM Server (written as a Local Server in a .EXE) should start when the step within the sequence be executed.
Any ideas why the sequence is not executing properly ?
PacSoftHi Pacsoft,
Check out this example,
I posted it in a former thread.
Note: Also downloaded the .seq from the former thread! NEVER acept savings to Ni. -INI files !!!
Greetings
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
ConsoleApplication2.zip 55 KB -
DSC powershell xwindowsprocess to execute batch file under different user account
DSC powershell run under "NT AUTHORITY\SYSTEM".
I am trying to execute a batch file under different user account using xwindowsprocess in DSC resource kit.
I created a custom dsc resource with 3 parameters namely Exepath, Arguments, Credential.
I received those parameter values in settargetresource method.
CallPInvoke
[Source.NativeMethods]::CreateProcessAsUser(("$ExePath "+$Arguments), $Credential.GetNetworkCredential().Domain, $Credential.GetNetworkCredential().UserName, $Credential.GetNetworkCredential().Password)
I tested it by invoking a batch file and writing username under which it executes to a text file.
After executing, the output text file still contains the "Systemname$".Configuration Sample_xService_ServiceWithCredential
param
[string[]]
$nodeName = 'localhost',
[System.String]
$Name,
[System.String]
[ValidateSet("Automatic", "Manual", "Disabled")]
$StartupType="Automatic",
[System.String]
[ValidateSet("LocalSystem", "LocalService", "NetworkService")]
$BuiltInAccount="LocalSystem",
[System.Management.Automation.PSCredential]
$Credential,
[System.String]
[ValidateSet("Running", "Stopped")]
$State="Running",
[System.String]
[ValidateSet("Present", "Absent")]
$Ensure="Present",
[System.String]
$Path,
[System.String]
$DisplayName,
[System.String]
$Description,
[System.String[]]
$Dependencies
Import-DscResource -Name MSFT_xServiceResource -ModuleName xPSDesiredStateConfiguration
Node $nodeName
xService service
Name = $Name
DisplayName = $DisplayName
Ensure = $Ensure
Path = $Path
StartupType = $StartupType
Credential = $credential
$Config = @{
Allnodes = @(
Nodename = "localhost"
PSDSCAllowPlainTextPassword = $true
#Sample Scenarios
$credential = Get-Credential
Sample_xService_ServiceWithCredential -ConfigurationData $Config -Name "Sample Service" -DisplayName "Sample Display Name" -Ensure "Present" -Path "C:\DSC\TestService.exe" -StartupType Automatic -Credential $credential
¯\_(ツ)_/¯ -
How to run the Batch input session(SM35) in background thru Report program
Hi Experts,
I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).
Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.
Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.
Please advise and guide me, how to proceed.
I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.
Thanks & Regards
San.Hi Arabind Prasad,
Thanks for your inputs.
I know the process of the report Execution in background and job steps.
I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically
Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.
The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').
Hope I am clear in my query.
Please advise.
Regards
San.
Edited by: San Learner on Mar 1, 2011 7:16 PM -
How to see the Batch input session name in SM35 with User name.
Hi
Yesterday,User has created one Batch input session from FBWE and selected process button after that display errors only tick mark in SM35. Then the system displayed one error message"No Batch input data for screen SAPMF05A 0700".After that he came out from the screen. He dont know what happened.
Today we have verified in SM35. But there is no batch input session with his name. We have verified in incorrect screens and every thing in SM35.
We have verified in Table 'T045DTA'. There are some entries are there.
We dont know the session name also.
How we can find the session name created by the User.
We have not deleted any thing.
Please help me
Thanks
Ravi.Hi Ravi,
Yes, you should be able to create a new batch job for FBWE. You can see your own batch sessions from SYSTEM ==> OWN JOBS
Regards,
Mike -
How to execute a exe file using javascript on app window.load.
How to execute a exe file using javascript on app window.load.
Hi sb00349044,
As I have already mentioned in multiple replies to your previous questions, the SUMO forums focuses on providing help to end users with usage-questions and issues.
For developer-related questions, please refer to one of the many resources readily available that I have linked to in the past:
* [https://developer.mozilla.org/en-US/Firefox_OS MDN]
* [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
* [https://lists.mozilla.org/listinfo Mozilla Mailing Lists]
- Ralph -
How do you do a quick transfer of data from one TX to another TX with different user name
I have more than one TX and want to keep most of the information, addresses, media, calendar as well as third party software the same on all my TX's. Is there a way to do this without the long hassle of exporting all that can be exported, and then importing it into each TX. Then adding all the third party software again? I have a new TX and remember how long this takes, so I am hoping for a faster method. I already know how to do a transfer if using the same user name, but this won't work when each will have a different user name in order to hotsync.
This may be a different question. All the TXs will be used and will sync to the same computer via USB, and all are on the Palm Desktop. I want to use them interchangeably. I would also like to keep the information current on all of them, as I now must copy paste any new info (ex. new address) into each via either palm desktop, or beaming to the others. Often this leads to discrepancies of the data between the different TXs.
Post relates to: Palm TX
Message Edited by Silfox on 06-22-2009 09:03 AMYou might look into a program called "SyncUs" from an author in the UK. It will keep all the PIM data synced between two Palm OS units.
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked! -
Execute process (shell script) under different user
Hi,
is it possible to use the ProcessBuilder oder .exec()-method to execute a shell script under a JVM-different user? I need to start shell scripts for different system users and I don't want to use SUDO or a wrapper script to switch to the required user. I would like to define the user at java level. Is this possible?
Best regards,
Thomaslooking for something like this too.
currently i am relying on a script in which i have to set the user as:
"su username -c java_program"
the problem with this approach is that if youre not running as root, then su asks for a password, thereby halting execution. (tried input redirects and here-docs, (some popular linux tricks), they did not work)
so you have to be root for the script option to work.
if anyone can suggest a more "java based" way of executing a process as a different user , thatll be awesome. -
I RECENTLY PURCHASED ANOTHER IPHONE. MY INTERNET IS NOT WORKING. I JUST CREATED AN APPLE ID. WHAT'S NEXT? I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES. HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???
Welcome to the Apple community.
iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID. -
I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.
Copy the movie from the current library to the correct library.
iDevices can only sync to one library at a time.
Maybe you are looking for
-
TRAINING AND EVENT MANAGEMENT - ERROR
Dear SAP Experts, I am working on the module TRAINING AND EVENT MANAGEMENT. While using transaction PSV2 - DYNAMIC BUSINESS EVENT MENU, when i click on BUSINESS EVENT TYPE in that create W/O RESOURCES, I get an error. PLANNING PERIOD IS NOT IN BUSINE
-
Outlook Integration Fields not sychronized
Hi, For the fields "State/Province" and "ZIP/Postal Code" do not appear in SAP B1 business partner master data "bill to" fields. Anyway to synchronize these 2 fields? Thank you. Regards, Ian
-
I keep getting the message"the IPhoto library is locked, on a locked disc or you do not have permission to make a change to it." Prior to downloaading Mavericks OS last week, have neever had a problem with IPhot. What can I do. All the suggestions on
-
Javafx: How change color of focus of controls?
Hi everyone, I got a trouble with change the color of focus of controls? Have anyone know? Please tell me. Here is my example. [http://imageshack.us/photo/my-images/864/fffd.png/] Please help me out. Thank very much. Edited by: 904388 on Dec 25, 2011
-
WRT54G v8.2 downgrading help
I want to downgrade my router to v3. It's new, so it doesn't have dd-wrt or other stuff. How can I do it? I would really appreciate if someone could give me step-by-step instructions since i'm a novice in this kind of stuff. Thanks in advance!