Is it possible to invoke a perl function from a bash script ?
There are existing perl scripts with many functions that I want to reuse from a more recent script written in bash. Hence the question. (1 Reply)
Hi all,
I use the perl script to invoke the bash script. and now there is a problem.
my bash script lists as follows:
and I use perl run this test scripts
now the problem is when I run the perl script I find there is nothing recorded in the file /tmp/jdk.txt (2 Replies)
Need some help getting this script to work. can someone help. I am trying to create a script that moves log files to another location and only keeps 60 days worth. please see script I started but having issue getting to work..
$TODAY=GET-DATE
GET-CHILDITEM C:\test\*.LOG | Where {... (9 Replies)
I would like to the the windws8/cygwin/bash shebang feature to start a powershell script.
I do a "chmod +x set-sound.ps1"
and then at a bash prompt I do
./set-sound.ps1
The first line of ./set-sound.ps1
#!powershell.exe -ExecutionPolicy unrestricted
The result is the result:
... (5 Replies)
I am very not knowledgeable with regards to Windows, and even more so with PowerShell, but I'm hoping someone can help me with what should be a fairly simple script.
Remove all local accounts matching a given regular expression
It seems like I'd need the following combined... Somehow...
... (0 Replies)
All,
Have a weird issue where i need to generate a report from GitHub monthly detailing user accounts and the last time they logged in. I'm using a windows box to do this (work issued) and would like to know if anyone has any experience scripting for GitAPI using windows / cygwin / powershell?... (9 Replies)
Hello !
I am looking for powershell guys.
I have lot of office365 users ,and i need add/remove calendar items from powershell.
my users have multiple calendars.
how can i select calendar ,and how can i add / remove item to selected calendar.
PS C:\appl\o365calendar> get-mailboxfolder... (0 Replies)
Hi
I have a powershell script which is checking whether a windows service is running (as shown below)
function FuncCheckService
{
$ServiceName = 'pgsql-9.2'
$arrService = Get-Service -Name $ServiceName
if ($arrService.Status -eq 'Running')
{
Write-Output... (8 Replies)
Discussion started by: simpsa27
8 Replies
LEARN ABOUT SUNOS
add-admin-object
asadmin-add-admin-object(1AS) User Commands asadmin-add-admin-object(1AS)NAME
add-admin-object - adds the administered object with the specified JNDI name
SYNOPSIS
add-admin-object --user admin_user[--password admin_password] [ --host localhost] [--port 4848] [--passwordfile filename] [ --secure|-s]
--aorestype admin_object_type [--property name=value[:name=value]*] --raname rar_filename jndi_name
Creates an administered object corresponding to a resource adapter. The ra.xml file can be found in the META-INF directory of the resource
adapter archive. After a .RAR file is deployed to the application server, it gets extracted and a directory corresponding to the .RAR name
is created under $INSTANCE_ROOT/applicaitons/j2ee-modules (or j2ee-apps). You can find the ra.xml in the META-INF subdirectory of the RAR's
directory.
OPTIONS --user administrative user associated for the instance.
--password administrative password corresponding to the administrative user.
--host host name of the machine hosting the administrative instance.
--port administrative port number associated with the administrative host.
--secure indicates communication with the administrative instance in secured mode.
--passwordfile file containing passwords appropriate for the command (e.g., administrative instance).
--aorestype administered object resource type as defined by the resource adapter in the ra.xml file.
--property optional attributes name/value pairs for configuring the resource.
--raname name of the resource adapter.
OPERANDS
jndi_name JNDI name of the administered object to be added.
Example 1: Using add-admin-object
A JMS queue, called sample_jmsqueue, is assumed to have already been created using the create-jmsdest command.
asadmin> add-admin-object --user admin --password adminadmin
--aorestype javax.jms.Queue --property Name=sample_jmsqueue
--raname jmsra jms/samplequeue
Created the object
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-admin-object(1AS), asadmin-list-admin-objects(1AS)J2EE 1.4 SDK March 2004 asadmin-add-admin-object(1AS)