I need to pass values like 1 , 2 , 3 to MY_IMAGE in command line in linux .
I had defines activities for all these inputs in other make file.
The code similar to below i wrote for my requirement. Issue was whenever i passes values like MY_IMAGE=1 , MY_IMAGE=2 ,MY_IMAGE=3 it's printing only echo ACT_DO=XYZ;
It's not displaying the other info whenever i selected 2 or 3 .can any one check and correct my code .thanks in advance.
---------- Post updated 05-09-12 at 12:08 AM ---------- Previous update was 05-08-12 at 10:53 PM ----------
can any one pls help in shell syntax if possible for the above mentioned requirement
Hi
What I'm trying to do(manually) is logging into the server
and running the below mentioned commands
ls /sys/class/scsi_device/ | while read i; do echo "- - -" > /sys/class/scsi_device/$i/device/rescan;done
lsblk
echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdd
partx -a /dev/sdd1... (7 Replies)
Hi All,
Please suggest me how to make script for file transfer from server X to another server Y.
I have some directory path in server X as below:
/home/directory_1/
.
.
/home/directory_n/
where some text files are available in each directory where some files records zero and some files... (6 Replies)
Hello to all,
The Regex below is supposed to match all strings except RR45. I've tested in regex101.com and it works, butwhen I try to use it with the perl command below I get the error shown.
Regex=(?<=^|RR45)(?!RR45).+?(?=RR45|$)
How to fix this? I'm using Cygwin.
$ echo... (9 Replies)
Hi Gurus,
I wrote a simple code, but it doesn't work, can body help me to fix the issue.
awk -F',' 'BEGIN{n=0}{
NR == FNR {fname;next}
{
if ($3==fname)
n=1
}
END{if n==0}
}' tmpsrc srcfile.txt
Thanks in advance (4 Replies)
Hi Friends,
I have the following input parameters file
name
input
err1
out1
1
40G
DET
sylamer
dir1
dir2
123456
I want to make the following script
#!/bin/bash
# (5 Replies)
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (3 Replies)
Hi folks
I have a unix script script1 in a directory folder1 and also I have few input log files in this directory. My input log files will be copied into this directory folder1 from the portable thumb drive.
Now what I want is I need to run this script1 whenever any new file is copied... (2 Replies)
Hi all,
I had a large application created using Visual C++. I ported that application using WINE to the Linux platform (ofcourse x86). Now I have to port the same application to AIX which runs over IBM mainframe. I dont have mainframe available but it is required for me to port my application to... (1 Reply)
Up until two days ago they were working junt fine, then stoped working with out me doing anything. Yesterday they started working again...and then stoped working, at about the same time of day that they stoped working the day before.
service crond restart
did nothing. All SSH signs point to... (0 Replies)
hello everyone,
I had a HP-UX, i am trying to find the make version ,but it is displaying the error i.e
make -v
Make: Unknown flag argument v. Stop.
make -version
Make: Unknown flag argument v. Stop.
make --version
Make: Unknown flag argument -. Stop.
make -V
Make: Unknown flag... (2 Replies)