Search Results

Search: Posts Made By: jagak89
6,227
Posted By jagak89
thanks to both of you.It worked. :b: ...
thanks to both of you.It worked. :b:

---------- Post updated at 01:24 AM ---------- Previous update was at 01:21 AM ----------

thanks to every one

another way of doing this
fdisk "device...
2,779
Posted By jagak89
actual code: #!/bin/bash awk -v app=$1 -v ...
actual code:
#!/bin/bash
awk -v app=$1 -v pre=$2 '{printf("%s %s %s\n",app,$0,pre);}' input_file


pass prepend word as first command line argument
append word as second command line argument
2,779
Posted By jagak89
do you want to append and prepend the same thing...
do you want to append and prepend the same thing to all the lines in a file?

if thats the case we can easily do it with awk.
6,227
Posted By jagak89
fdisk is in separate file thats the...
fdisk is in separate file

thats the spawned process spawn_process


code for that spawn_process


#!/bin/bash
fdisk /dev/xvdj
:)

Code tags for code, please.
2,779
Posted By jagak89
is this ur actual script? if not please post...
is this ur actual script?
if not please post actual one
if i know i will help u
6,227
Posted By jagak89
problem in automating "fdisk" command using send and expect
hi
i want to automate fdisk command .
i spawned a process containing fdisk command from a process
and tried to send the options to fdisk promt from that process.
but that spawed process is...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy