Run a script with the command sudo bash

Hello

I'm trying to run a bash script with comments script Manager package. There is a sudo command in the script and he asks me problem.

First mistake is: sudo: Sorry, you must have a TTY to run sudo

So I tried to run the command sudo with ssh localhost sudo t t < command > but I get a new error (and even one): tcgetattr: Inappropriate ioctl for device

I don't know how to run as the root user is not allowed to connect.

So, launching a vCO sudo command really possible?

Thank you!

Sudo problem is quite easy to solve; "edit/etc/sudoers on the endpoint point ssh and then comment or delete the line"Defaults requiretty". That should fix that right up. What command are you trying to run?

Tags: VMware

Similar Questions

  • Running Powershell script with ESXCLI commands via a scheduled task in Windows 2012 does not work.

    I'm trying to run a powershell script of a scheduled task in Windows 2012. The script calls the commands ESXCLI and ends with success (exporting to a CSV file) but the file has no data inside.  If I run the script manually without the scheduled task file has all the I expect to exit.

    I wonder if there is a framework with Powershell or a PSSnapin I need to add to the script for it to run via a scheduled task.  Has anyone done this before with the ESXCLI commands?

    panhvr - you may to something.  The process account that I use to run this script has only read-only access in vCenter.  I logged on the server I am running these reports with the process ID and tried to run the script.  He gave me errors indicating permission to perform the operations of esxcli was denied.

    I think we found the culprit!  I'll have this process ID in vCenter rights upward.

    Thank you all!

  • Running a script from the command line

    Hi all
    First of all, I'd like to say I'm just starting ORACLE 11 g with no prior experience of the database. I currently lectures once a week. However, I am stuck with a problem. I am trying to access my database of the United of the House so I can do some work, apparently I can only access it via the command prompt (which is good for me) I began by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home. However, I have a createHR.sql of script file that is stored in my C:\ORACLE directory which I try to access in order to load my test tables and start practicing with them.
    use command line

    SQL > C:\ORACLE\createHr and I get SP2-0310: unable to connect to the file "C:\ORACLE\create HR.sql".

    normally, this should load and run the script - as with the browser method guests will get the tables is created and the test data.

    I am now officially frustrated that I can't get any done practice, offered any help will be welcome.

    Concerning

    Claude

    Published by: 891128 October 12, 2011 09:33

    Published by: 891128 October 12, 2011 09:41

    Published by: 891128 October 12, 2011 09:44

    891128 wrote:
    I started by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home.
    However, I have a createHR.sql of script file that is stored in my phonebook C:\ORACLE

    These two sentences above are essential. If I had to bet a directory C:\ORACLE assumption is located locally on your laptop. However, it seems you have done a SSH connection to your server and connected to the database using SQL * more customer on the server. The client on the server has no idea or access to files on your machine.

    You must open the script on your laptop and copy / paste into your SQL SSH * more session or you will need to find a way to copy this script on the server, so you can run it.

    I hope this helps!

  • start the script from the command prompt

    Hi all
    I'm trying to run a script from the command prompt, I get the following error message:
    A JDK is required to run Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: From scenario INT_ACCOUNT_LOAD_ONE 001 Global context...
    java.sql.SQLException: no driver appropriate
    at java.sql.DriverManager.getDriver (unknown Source)
    at com.sunopsis.sql.SnpsConnection.u (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c (SnpsConnection.java)
    at com.sunopsis.sql.i.run (i.java)


    I gave the information to the repository in the file odiparameters.bat, also I put the ODI_HOME path separately in the system of environmental variables. It is not a form of work.

    Concerning
    KK

    This error message indicates that the driver is correct, but your URL for your storage space is not. (if she could not find the driver, then he would have given the exception to com.sunopsis.sql.c)

  • on port 162 java.exe running. I tried to kill him with the command prodess k 1289. 1298 here is the process ID. but it comes back again. I need the port 162 for sending traps.

    original title: port162

    Hi, on port 162 there is a process called java.exe running. I tried to kill him with the command prodess k 1289. 1298 here is the process ID. but it comes back again. I need the port 162 for sending traps. I first removed java completely from my pc, but still there was this java.exe. in fact, there are two java.exe if I check in the running task manager. need help. I also ran antivirus as well as anti-malware software, but no difference.

    Hello

    I suggest you to visit these links and check if it helps:
    http://www.Java.com/en/download/uninstall.jsp
    http://Java.com/en/download/help/regkey_addremove.XML

    Have you tried to change the port to Java? See this link:

    http://www.Java.com/en/download/help/proxy_setup.XML

    It will be useful.

  • How to run a script using the OMB tcl

    I'm trying to run a tcl script using the following syntax in cmd

    D:\app\Username\product\11.1.0\db_2\owb\bin\win32 > ombplus.bat c:\t.tcl

    and I get the error

    OMB01001: Not connected to the repository.

    The tcl script was basically accompanied by a tutorial and I can't continue the OWB tutorial, unless I run it first

    Departure ombplus.bat

    You can then start the script with the source command such as

    source C:/t.tcl
    

    Be careful with the backslash (he is not C:\t.tcl)

    You must also add a connection before your script to OWB with the OMBCONNECT

    OMBCONNECT $UserLogin/$UserPassword@$DBHostName:$DBHostPort:$ServiceName USE REPOSITORY '$RepositoryUser' USE MULTIPLE_USER_MODE
    

    Replace the parameters $ with your own value.

    And then your script, you can disconnect:

    OMBDISCONNECT
    

    Success
    Nico

    Documentation is here for the 11g OMBCOMMAND
    http://download.Oracle.com/docs/CD/B28359_01/OWB.111/b31279/TOC.htm

  • Deployment of final application with the command line Question

    OK so I have my finished application.

    on a folder in my office called "CODBOUG".

    So I tried different methods to run the application and complete the test on the Simulator with the command line. But it's just too much. So I need your help community!

    I tried:

    BlackBerry-deploy-installApp-package CallofDutyBlackOpsUltimateG

    uide.bar - device 192.168.18.128

    I'm a little lost with the help of the command line, if someone could guide me on the right lane.

    I'm on windows, btw.

    Thank you.

    When you run a command, Windows will search in a series of directories for this program to run. The list of directories is stored in what is called an environment variable. You must add the path to the bin of the sdk at this variable directory (e.g. C:\Program Files (x 86) \Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin).

    You can access the path variable by right-clicking on my computer > properties. Select the Advanced tab and click on approx. Variables.

    Under System Variables, search PATH and edit it. Add the path to the sdk bin directory (make sure that there is a semicolon, that separates the directories).

    Open a command line window in the directory where your .bar file. When you run the command, Windows will look for blackberry - deploy and can be found in the directory that you have added to your PATH variable so to run it.

  • Stop a download frozen with the command prompt?

    I was able to stop a recently by installing anti-virus software, but I got lucky. The program did not run and it seemed just to complete the download as a by-product of the initialization. I want to do with the command prompt. Anyone know how?

    Hello

    There are several commands that you can try, my favorite is "exit" (without the quotes);

    "Ctrl + X".

    "Ctrl + Alt + Delete" (once)

    Kind regards

    BearPup

  • Is it possible to store parameters to script with the InDesign file?

    Hello

    I have a crazy idea: it is possible to store parameters to script with the InDesign file?

    In this case the Scripting Guys will be able to store these settings with the file, and when the script runs - he can check if those setting exists - if so - script can run without showing the dialog with the settings... (like all the necessary parameters are stored with the indesign file), and of course we can force InDesign to display the script dialog parameters if run us with the alt/option key pressed when executing this script. Maybe even different scripts will be able to share these settings and interact with each other... We will be able to have the settings will be saved with the file, or temp settings for the document assets or session (till InDesign is closed). With eventListeners and commissioning, scripts, that we will be able to make scripts that would be able to check updates and automatically run when we placing images and text and so on... This can be a set framework of InDesign scripting, allowing to write scripts that use ui and same libraries so we don't have to write everything from scratch every time and just included required libs...

    So here are 2 great questions for now:

    (1) is it possible to store script with .indd file settings

    (2) who is interested in creating InDesign scripting (because it only makes sense if it will use a lot of people)

    PS: I know that it is possible to store settings in an external file, but this time, I'm interested only to save the params with .indd

    The syntax of the function to write the label:

    app.activeDocument.insertLabel('myLabel', 'myLabelValue');
    

    IMPORTANT: If you forget the name of the label, the label is LOST! Really? YES, REALLY!

    The syntax of the function for the reading of labels:

    var myLabel = app.activeDocument.extractLabel('myLabel');
    

    http://indisnip.WordPress.com/2010/07/31/saving-script-data-within-document/

  • Whenever I have download an image with the command "save the image under...". ", it records in a useless file of 168 bits.

    As stated, whenever I have download an image with the command "save image under" he recorded in a useless file of 168 bits. This does not happen everytime I have save an image, but more often the not, and I don't have a lot of useless files hang out because of this. Is it possible to re - download each image 168 bits that he should have been downloaded in the first place? Is it possible to ensure that this does not happen?

    Here's what it looks like:
    http://i.imgur.com/yzgwwgC.gif?1

    This means that you are not allowed to do this action.
    The site could use a transparent overlay image to protect the actual image or otherwise has put in place a protection.
    You can check if see you the image in "tools > Page Info > Media ' and save it.

  • Block the ip address in the server with the command cmd win

    Hello

    In win server how can I block IP with the command cmd?
    Thank you

    The server gurus hang out more in the TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/categories

    Here, we help with questions and problems of security.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • Need help with the command options of codec C40

    Hello! I plan to buy a few codecs C40 and seller offers me to buy three options for this, but I can't find a description of these options. Seller is not so appropriate as I would like and these options cost a lot. They are here:

    LIC-INTP-C40-DD Option of dual inclusive package C40
    LIC-INTP-C40-SM IntPkg Codec C40, 4Way individual transcoding Multisite
    LIC-INTP-C40-PR IntPkg Codec C40Premium resolution (1080 p/720 p 60) Option

    I found the document with similar options here (table 3), but there is also no description:

    http://www.Cisco.com/en/us/prod/collateral/ps7060/ps11304/ps11312/ps11332/data_sheet_c78-628593_ps11422_Products_Data_Sheet.html

    I think that these options it is me

    one) to use two screens (only two or more?) with C40

    (b) serve as C40 MCU for up to four sites without going through any additional autonomous MCU

    (c) to use video FullHD for videocalls (but I'll buy cameras 1080 p for C40, I need licence also for C40?)

    So, I would ask someone who is familiar with the command of Cisco/Tandberg to describe these options.

    You are actually right on your assumptions and descriptions, you just pretty much what each of these options do listed.

    Dual display-

    C40 has the ability to display the same video on both outputs by default, if you do not get this option.  This option is to display two separate video sources on two screens, such as: Farsite on output 1 and content/selfview on output 2.

    High resolution-

    You might be buying cameras 1080 p but resolution premium will allow you to pass resolutions higher during a call.  You can still view the full HD video when not in a call although if you choose not to get this option.

  • How do I see the full message with the command Get-VIEvent

    Hello list,

    I was trying to see the VIevents with the command get-vievent as below

    Get-VIEvent-type error - MaxSamples 20 | Format-Table Createduserid, FullFormattedMessage - autosize

    In this case, if it's a great message, the fullFormattedMessage displays incomplete messages (for example/error found on & lt;) ESX IP & gt; in & lt; Centre for data & gt ;...) ... what should I wear to display the full message with the command Get-VIevent?

    Thank you

    Krishnaprsad

    This is the Format-Table cmdlet, which shows only a part of the message.

    If you want to see the full message, you could do

    Get-VIEvent -Type Error -MaxSamples 20 | %{Write-Host $_.CreatedTime $_.FullFormattedMessage}
    

    The alternative is to adapt the formatting instructions in the VMware.VimAutomation.Format.ps1xml file.

    But that could impact other cmdlets and is a bit more complicated.

  • How the values to insert into the table with the command insertion

    Dear all
    can someone tell me how the values to insert into the table with the command insert, I want to say I always use command insert behind my forms on what shutter release button press the button of my save, but today I had a form of 6i, where controls (textbox, combo, etc.) are delineated with directly the table with I guess than the Properties Windows , I created 3 columns in tand 3 text on forms fields, now kindly tell me how to do this fields to fill and do not insert command, I mean directly defined with table column



    Please help me its urgent

    Hello

    If the block is based on your database table, just committed the shape, then changes will be applied to the database.

    François

Maybe you are looking for