How to pass the input to the execution script
ex: test1.sh contains
#! usr/bin/sh
read val
echo $val
test2.sh contains
#! /usr/bin/sh
./test1.sh
now I am calling test2.sh thro command line
and I want to pass the input to the script test1.sh from test2.sh ..I mean not... (6 Replies)
Hi,
In the below C code , i want to pass the array to a unix shel script.
my script should called as ex myscript 1,2,3
#include <stdio.h>
int main()
{
int a={1,2,3};
}
Thanks,
Arun (1 Reply)
Hi Folks,
The subject is my question:
Can we pass an array of strings from a Perl Program to a Shell Script?
Please provide some sample code.
Thanks
---------- Post updated at 11:52 PM ---------- Previous update was at 11:43 PM ----------
I got it.
Its here:... (0 Replies)
hi there,
i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments.
This is the code,
after the java... (4 Replies)
Hi All,
Can anybody please help me with how can i call my java program from shell and also pass parameter along with it so that the program can interpret the value/int and update the database.
Thanks in advance
Neha (1 Reply)
Hi,
We are having a java server which can run on command line and once initiated, it will prompt options to enter from 0 to 5. The java program kickoff respective operation once number is entered between 0 to 5. However i want to always enter "1" and write another shell program wrapper to start... (4 Replies)
Hi,
Here is my question:
I want a shell script which I name as 'del', and can be used as del(string).
when run del(string), it will delete several directories at different locations in my system,like:
rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr... (4 Replies)
Suppose I have a program that I've written that accepts input, ie this C++ program:
#include <iostream>
using namespace std;
int main()
{
cout << "Enter something:" << endl;
int x;
cin >> x;
cout << "You entered data" << endl;
}
Suppose that I have a text file,... (5 Replies)
i have a scenario where in i have to monitor jobs which run in different servers, The job details(job name, host server, etc) are present in a dat file.
I have written a script a script which reads the details from the dat file and calls a local method where the job monitoring logic is present.... (2 Replies)
OS version: RHEL 6.7
myTextFile.txt file is referred within Script1.sh script,
I only execute Script1.sh and I want the input variable to be passed inside myTextFile.txt . Any idea how I can do this ?
$ cat script1.sh
cat myTextFile.txt
$ cat myTextFile.txt
$1
Requirement1.... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT HPUX
dtwsmchangebackdrop
DtWsmChangeBackdrop(API) DtWsmChangeBackdrop(API)
NAME
DtWsmChangeBackdrop -- set current workspace's backdrop
SYNOPSIS
#include <Dt/Wsm.h>
int DtWsmChangeBackdrop(
Display *display,
Window root,
char *path,
Pixmap pixmap);
DESCRIPTION
The DtWsmChangeBackdrop function works with the CDE workspace manager, dtwm(1), and changes the current workspace's backdrop. Applications
can use this function to implement an interface to the workspace manager.
If the DtWsmChangeBackdrop function is not successful, the most likely reason for failure is that the CDE workspace manager, dtwm(1), is
not running.
DtWsmChangeBackdrop sends a message to the CDE workspace manager, dtwm(1), to change the backdrop.
The path argument points to a backdrop file name. The file must be in either X Bitmap file format (with extension .bm) or Pixmap file for-
mat (with extension .pm). The workspace management services look for the file along the same path used for searching icons. The directory
/usr/dt/backdrops is the default directory if the file cannot be found along the icon search path.
ARGUMENTS
display display
root root window of the screen
path file path to bitmap file
pixmap pixmap ID of backdrop pixmap
SEE ALSO DtWsm(5)
"Communicating with the Workspace Manager" section in the CDE Programmer's Guide
"Workspace Manager" section in the CDE Programmer's Overview
DtWsmChangeBackdrop(API)