helps the mailx command

Hello
I don't know which forum to post this in, but since I am writing a script as part of an aspect of my database I don't know people in this forum will be able to help.

I wrote a script and using the mailx command to send a message to 2 groups of recipients. I put each group of addresses of recipients in a variable, but I'm not sure what the syntax should be either to test the command from the command line before putting it in the script, or even in the script.

On the command line, I put:
mailx-s "test test" $1, $2 < errorlog.txt
When I do that, I get no response, it crashes.

So I try to put in the script

....
mailx-s "test test" $1, $2 < errorlog.txt
...

It works well with just the single variable, but the correct syntax for several variables? That is to say * $1, $2 *.

Thank you

How to watch the script? $1 and $2 are variable positional, those in the argument you offer?

Declare the vairable like this:

[email protected]
[email protected]

mailx -s "test" ${EMAIL1},${EMAIL2} 

HTH

Tags: Database

Similar Questions

  • Help with a command script

    Hello
    There some time, someone has written the following script for me. The idea was to make a command that would allow me to reduce an image up to 400 width in pixels without loss of scale. I want to have a similar command that will reduce a large image to 400 pilel height without loss of scale. I fiddled with the width command but cannot operate in height. Can I get help the following command to work at height of 400 pixels of rewriting? Thank you.
    User variables
    var width = 400;

    Order
    var dom = fw.getDocumentDOM ();
    var scale = width/dom.width;
    var height = dom.height * scale;
    dom.setDocumentImageSize ({left:dom.left, top: dom.top, right:dom.left + width, bottom:dom.top + height}, {pixelsPerUnit:dom.resolution, United:dom.resolutionUnits});})

    Tom Hersh wrote:
    > I try it this way. But I couldn't make it work. The word "scale" is critical, but I switch did not help.

    Just pass the variables verbatim. Height width and width for
    height.

    User variables
    var width = 400;

    Order
    var dom = fw.getDocumentDOM ();
    var scale = width/dom.width;
    var height = dom.height * scale;
    dom.setDocumentImageSize ({left:dom.left, top: dom.top,
    Right:DOM. Left + Width,
    Bottom:DOM. Top + Height}, {pixelsPerUnit:dom.resolution,
    :DOM.resolutionUnits}) units;

    User variables
    var height = 400;

    Order
    var dom = fw.getDocumentDOM ();
    var scale = height/dom.height;
    var width = dom.width * scale;
    dom.setDocumentImageSize ({left:dom.left, top: dom.top,
    Right:DOM. Left + Width,
    Bottom:DOM. Top + Height}, {pixelsPerUnit:dom.resolution,
    :DOM.resolutionUnits}) units;

    Once you see this script, it is not hard to see what he does.

    This is the script of fireworks generated the scale just at the height of a
    picture 400 px of 640 x 480 px.

    fw.getDocumentDOM)
    .scaleSelection (0.83281248807907104, 0.83333333333333337,
    "autoTrimImages transformAttributes");

    It works on all the images in 640 x 480. Add to that a 700 x 480 and it won't.

    I'm assuming, very few people here (including me), would be able
    to turn this into something that would take into account the widths of
    as did senocular.

    SKB

  • The terminal commands/help shell initialization files

    A few days ago, I opened the terminal on my MBP and tried the help command. Here, I tried ls help. I was expecting to get help for the command ls, but I got this instead:

    LS: help: no such file or directory

    I know that ls , it was just try random commands on my terminal. However, after some searching on Google I realized that some people had similar problems with some commands doesn't work is not on the terminal. And most of the problems appear to be related to the shell initialization files.

    How can I fix this?

    It was just try random orders

    Orders randomly won't work. You must enter commands that make sense. "ls help" is a command to list a file named 'help' in the current directory. Since there is no file, all you get is an error message. If you want to learn how to use the shell, I suggest you only begin by reading a book or a tutorial online. I don't have a specific recommendation.

  • I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    You probably have some of the older than the needs/desires software legacy Java installed.

    Please see these sons of community message:

    After the installation of El Capitan, I get the message: to use the 'java' command line tool, you must install a JDK

    Just found this last Java does not work with El Capitan

    This is the Apple link to the legacy version of Java 6.

    Download Java for OS X 2015-001

    First of all, I would like to try to identify what application generated the next message and update (delete) this request as the case may be. If you need to run Java then, as the Apple Support page says it's certainly preferable that your installation of Java entirely up-to-date with the Oracle's Java course. If you can get without Java, you should install it not - like the Flash, it should not be installed unless you have no choice.

  • How can I disable the voice command all together?

    I hope someone can help me.  In recent months I have experienced a problem with my iPod Touch [128 GB] which I have not had in the past.

    I plug my headphones to listen to music when I'm about to go for a walk.  However, soon after my iPod in my pocket, the voice command is activated (see image).  I have the firm down, but I still have problems.  The music I listen to speed upward (as it is sent) or he's going to jump until then randomly in the track or other tracks.  The voice command is activated again at irregular intervals.

    I don't know if it has something to do with my headphones (attached image), which has a built-in microphone.  The reality is that I never use the voice command and don't think I ever have to use it on my iPod.

    I read on the deactivation of Siri, but Siri is already disabled.

    Thank you very much

    You can disable VC turning Siri.

    I would try another pair of headphones. I suspect that the headset turn on VC.

  • I want to disable the shortcut command + q

    I want to disable the shortcut command + q

    Not negligible

    Try some of these web pages.  If they do not contribute, then Google 'disable the command-Q' and you can find something that helps

    <https://apple.stackexchange.com/questions/45252/can-i-globally-change-the-cmd-q-shortcut-to-require-holding-for-two-seconds-lik>

    <https://www.quora.com/How-do-I-disable-Command-q-in-OS-X>

    <https://apple.stackexchange.com/questions/78948/how-to-disable-command-q-for-qui t>

  • How can I get rid of the voice command on my iPod iOS 6.1.6

    The voice command suddenly appeared and interrupts all the time. I want to get rid of. I have been in settings and off voiceover but it makes no difference. It comes even when I turned off my iPod and when I then go to use it the battery is flat. Help, please.

    To turn off VoiceOver on iPod nano using VoiceOver gestures

    1. slide to the right or to the left with two fingers until you see or hear parameters.

    2 double-click to open settings.

    3. move your finger up or down the screen until you see or hear general, then double-click.

    4. move your finger to the top or the bottom of the screen until you see or hear the accessibility, then double-tap.

    5 move your finger up or down the screen until you see or hear VoiceOver, then double-click.

    http://support.Apple.com/kb/HT4317

  • How can I remove the pop up next to my iMac? "to continue the 'java' command line tool, that you must install the JDK

    I can't seem to make the tour of the following pop up: "to use the"java"command line tool, you must install JDK.  I downloaded Java for many times, but the pop-up Guard reappear.  Is there any solution to get rid of this pop up, it makes me crazy?  Help, please!

    What java you have download and install.  To install is TIME legacy java 6 Apple for OS X, which can be downloaded here: Download Java for OS X 2015-001

  • Portege R600-108 - the tool to run the TRIM command to improve the performance of SSDS

    Hello

    We have a couple of R600-108 with SSDS, they run Vista Business 32-bit.

    I was wondering if there is a utility I can download to run the TRIM command on drives to improve performance?

    Thank you

    James

    Hello

    To be honest I m not an expert in the increase in performance of the SSD, but according to the Wikipedia article, TRIM has been implemented in Windows 7 and Windows Server 2008 R2 and came out with the final versions of these operating systems in October 2009.
    It seems former SSD drives have firmware updates, otherwise the new command will be ignored.

    According to Wikipedia, there are utilities that can send TRIM commands manually.
    These utilities are available from various manufacturers such as Intel or G.Skill.
    http://en.Wikipedia.org/wiki/trim

    You can consult the Intel tool called "Intel Solid - State Drive Toolbox and Optimizer".
    http://download.Intel.com/support/SSDC/hpssd/SB/intel_ssd_toolbox_fqa.PDF

    I hope this helps a little

  • Control mouse using the voice command

    Hey...

    I'm doing project control of mouse by simple voice command and also the click of mouse using the voice command action...

    I have problem to compare my order with the standard command...

    Please help how I can make this comparison and produce output...

    Ginelle

    I would like to start by this library. I found this a long time ago, but it would allow you to build what you need

  • The WMIC command to uninstall an Application or software

    Dear Sir

    I want to know the WMIC command line to uninstall the software or Application which is already installed in the user's system.

    I had tried my commands like: WMIC: root\cli > process where the name = 'vlc.exe' call uninstall for example.

    But returns an error: uninstall - invalid alias verb.

    Kindly, help me on this please.

    Hi Akash,

    According to the information provided by you, please redirect your query on the MSDN forums, because they are able to help you further in this regard.

    https://social.msdn.Microsoft.com/forums/en-us/home

    Thank you.

    Nice day!

  • IIS 7.5, the NETBIOS command limit has been reached

    We use IIS services and media to stream videos. It comes to our dedicated streaming server. On rush hour, an error showed by saying 'the NETBIOS command limit has been reached.

    More info on platform:

    • IIS version is 7.5
    • OS version is Windows Server 2008

    Any info on this would be helpful extreme.

    Thank you


    Hi, Pranab,

    Error message "the NETBIOS command limit has been reached" in Windows Server 2003, Windows XP, and in Windows 2000 Server

    http://support.Microsoft.com/kb/810886

    NETBIOS command limit has been reached

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/thread/fa2aa6f2-9f3e-4dd0-B203-60f910767574

    If you need more information, repost your question to the TechNet Forum

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

  • My computer does not accept the print command.

    My computer does not accept the print command.  He always questions me to save a file, I don't want to save a file.  How can I change this?

    Sherimcfalls,

    1. what operating system is installed on the computer?
    2. the problem occurs with any particular application?

    Method 1
    I suggest you try the steps from the following link:

    Printer in Windows problems
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Method 2
    Try to set the default printer.

    Change your default printer
    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-your-default-printer

  • Cannot use the 'MDGS' command in Windows 7

    original title: need help with a Comand prompt

    Hi, I need help with a problem in the command prompt. Whenever I try to use the "msg" command, it displays an error indicating it is unavailable this command has been changed?

    MSG is not a command that is available in Windows 7.  You can get a list of available commands by typing help at the command line, or

    help > C:\Users\YourUserName\Desktop\Windows7DOSCommands.txt

    to put the list in a text file on your desktop

  • Helps the KB981852 update

    helps the KB981852 update.  the following message was published in regedit: %Windir%\KB981852.log
     
    [KB981852.log]
    8.767: ================================================================================
    8.767: 2010-11-13 22:43:22.430 (local)
    8.767: c:\690c14c58cb8e8f058d1\update\update.exe (version 6.3.13.0)
    8.783: DoInstallation: GetProcAddress (InitializeCustomizationDLL) returned: 0x7f
    8.783: hotfix started with following command line:
    8,845: CheckSystem: main Version mismatch: STATUS_NT_VERSION_MISMATCH
    8,845: DoInstallation: CheckSystem failed: 0xf021
    8,845: the version of Windows you have installed does not match the update you are trying to install.
    14.602: message displayed to the user: the version of Windows you have installed does not match the update you are trying to install.
    14.602: user input: OK
    14.602: Update.exe extended error code = 0xf021
    14.602: Update.exe return code was masked to 0 x 643 for MSI custom action compliance.

    I am running windows vista with Service Pack 2 installed.

    If you need more info please let me know

    The repeated failures to install KB981852 suggest very strongly that you see the effects of a rootkit infection W32/Alureon-Variant!

    Following the instructions on this site should help you:

    http://www.bleepingcomputer.com/virus-removal/remove-TDSS-tdl3-Alureon-rootkit-using-TDSSKiller>

    ~ or ~.

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    Buying to meet problems installing Microsoft security updates also can visit the following page for assistance:https://consumersecuritysupport.microsoft.com/>

    For more information about how to contact your local Microsoft subsidiary for security update support issues, visit the International Support Web site:http://support.microsoft.com/common/international.aspx>

    For enterprise customers, support for security updates is available through your usual support contacts.

Maybe you are looking for