MEL used to be the maya embedded scripting language. What does that have to do with a bash terminal command? It sounds like you need the MEL syntax to execute a bash script or command.
I do not know MEL - you get to figure out how to execute something like this native UNIX statement:
where foo is the valid username and bar is the valid password. And be able to see the status return code of the script a 1 (one) or a 0 (zero).
script lives in /somefolder/somewhere/you/put/it, with file permissions 755:
myscript.sh does all the stuff you cannot do in "one line", it has a status code of 0 if all is well, 1 otherwise.
Plus - as a wild guess - I believe that your question is probably ill-formed. There must be a way to run your MEL script process from bash itself under maya, maya is an executable. You are already running MEL.
You could construct your password query there, since you appear to have a hard-coded password and username anyway. Then either run or not run the entire maya/app/scripts bundle.
partial bash/Pseudocode ( I know nothing about maya)
Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script??
something like ssh a@b -p password ??? (5 Replies)
Helo ,
I m using linux pam library for user and its password authentication.
I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me
$ su - ram
Password:
You are required to change your password immediately... (12 Replies)
hi all,
i run sqlplus command on unix(HP-UX)
like "sqlplus username/password@serverA @deneme.sql"
but when someone run "ps -ef | grep sqlplus", it can see my username and password :(
How can i hide username and password.
thanx. (1 Reply)
Dear All,
I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually...
In short I dont want to connect to a diff server via ftp interactively.
Any suggestion...looking... (8 Replies)
Hello, I have two old Solaris machines
$ uname -a
SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2
unfortunately, it has been so long ago that i have used these that the root password has left my head...
i can log into one of the machine as a normal user, but am unable to... (4 Replies)
Hi
I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if their is a corresponding entry. Next ask the user to enter the pin and see if this matches... (5 Replies)
Picked up a 3b2 running System V. Works fine, but it requires a username and password. Is the username "root" or "sysadm"? How do I find out and how to I reset it or bypass it?
Thanks. (2 Replies)
Hello,
I am currently working on a project that requires me to remote login into another UNIX system using different credentials. The problem is that progamatically I cannot simply feed the password into the UNIX system. Is there a way to feed the password within one command line statement.
I... (1 Reply)
Discussion started by: myoung88
1 Replies
LEARN ABOUT CENTOS
fence_virsh
FENCE_AGENT(8) System Manager's Manual FENCE_AGENT(8)NAME
fence_virsh - Fence agent for virsh
DESCRIPTION
fence_virsh is an I/O Fencing agent which can be used with the virtual machines managed by libvirt. It logs via ssh to a dom0 and there run
virsh command, which does all work.
By default, virsh needs root account to do properly work. So you must allow ssh login in your sshd_config.
fence_virsh accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent.
fence_virsh can be run by itself with command line options. This is useful for testing and for turning outlets on or off from scripts.
Vendor URL: http://libvirt.org
PARAMETERS -a, --ip=[ip]
IP Address or Hostname This parameter is always required.
-l, --username=[name]
Login Name This parameter is always required.
-p, --password=[password]
Login password or passphrase
-c, --command-prompt=[prompt]
Force Python regex for command prompt (Default Value: ['[EXPECT]# '])
-x, --ssh
SSH connection (Default Value: 1)
-n, --plug=[id]
Physical plug number, name of virtual machine or UUID This parameter is always required.
-u, --ipport=[port]
TCP/UDP port to use for connection with device (Default Value: 22)
-4, --inet4-only
Forces agent to use IPv4 addresses only
-6, --inet6-only
Forces agent to use IPv6 addresses only
-S, --password-script=[script]
Script to retrieve password
-k, --identity-file=[filename]
Identity file for ssh
--ssh-options=[options]
SSH options to use (Default Value: -t '/bin/bash -c "PS1=# /bin/bash --noprofile --norc"')
-o, --action=[action]
Fencing Action (Default Value: reboot)
-v, --verbose
Verbose mode
-D, --debug-file=[debugfile]
Write debug information to given file
-V, --version
Display version information and exit
-h, --help
Display help and exit
-C, --separator=[char]
Separator for CSV created by operation list (Default Value: ,)
--power-timeout=[seconds]
Test X seconds for status change after ON/OFF (Default Value: 20)
--shell-timeout=[seconds]
Wait X seconds for cmd prompt after issuing command (Default Value: 3)
--login-timeout=[seconds]
Wait X seconds for cmd prompt after login (Default Value: 5)
--power-wait=[seconds]
Wait X seconds after issuing ON/OFF (Default Value: 0)
--delay=[seconds]
Wait X seconds before fencing is started (Default Value: 0)
--retry-on=[attempts]
Count of attempts to retry power on (Default Value: 1)
--use-sudo
Use sudo (without password) when calling 3rd party sotfware.
ACTIONS
on Power on machine.
off Power off machine.
reboot Reboot machine.
status This returns the status of the plug/virtual machine.
list List available plugs with aliases/virtual machines if there is support for more then one device. Returns N/A otherwise.
monitor
Check the health of fence device
metadata
Display the XML metadata describing this resource.
STDIN PARAMETERS
ipaddr IP Address or Hostname This parameter is always required.
login Login Name This parameter is always required.
passwd Login password or passphrase
cmd_prompt
Force Python regex for command prompt (Default Value: ['[EXPECT]# '])
secure SSH connection (Default Value: 1)
port Physical plug number, name of virtual machine or UUID This parameter is always required.
ipport TCP/UDP port to use for connection with device (Default Value: 22)
inet4_only
Forces agent to use IPv4 addresses only
inet6_only
Forces agent to use IPv6 addresses only
passwd_script
Script to retrieve password
identity_file
Identity file for ssh
ssh_options
SSH options to use (Default Value: -t '/bin/bash -c "PS1=# /bin/bash --noprofile --norc"')
action Fencing Action (Default Value: reboot)
verbose
Verbose mode
debug Write debug information to given file
version
Display version information and exit
help Display help and exit
separator
Separator for CSV created by operation list (Default Value: ,)
power_timeout
Test X seconds for status change after ON/OFF (Default Value: 20)
shell_timeout
Wait X seconds for cmd prompt after issuing command (Default Value: 3)
login_timeout
Wait X seconds for cmd prompt after login (Default Value: 5)
power_wait
Wait X seconds after issuing ON/OFF (Default Value: 0)
delay Wait X seconds before fencing is started (Default Value: 0)
retry_on
Count of attempts to retry power on (Default Value: 1)
sudo Use sudo (without password) when calling 3rd party sotfware.
fence_virsh (Fence Agent) 2009-10-20 FENCE_AGENT(8)