Search Results

Search: Posts Made By: mogabr
6,257
Posted By mogabr
hello i give ls -l as example but i want...
hello

i give ls -l
as example
but i want general operator that display output from last run command
6,257
Posted By mogabr
Echo output from command
Hello

i am trying to do some calculation from output command

for example
ls -l
if [ "$ wc -l" -gt 2 ]
then
echo "error"
else
echo "$"
fi

its something like this
which get strings...
1,235
Posted By mogabr
hello but this script run from 10 to 46 but...
hello

but this script run from 10 to 46 but not repeat again
1,235
Posted By mogabr
Looping advice
Hello guys


i am generating files in while loop and i want add value in every file start from 10 to 55 and repeat that

so the value never exceed 55 and always start from 10

can you advice...
32,345
Posted By mogabr
hello yes single quotes helps but not all...
hello

yes single quotes helps but not all cases
for example this line
MACHINE=`echo $2 | $SED -e's/\./,/g'`" > test.sh


how to put in single quotes while the line already contain single...
32,345
Posted By mogabr
How to echo $variable into txt file?
Hello

i tried many times echo $variables into text file with no success

for example:
echo "#!/bin/sh

BBHTAG=RFOCLT_check # What we put in bb-hosts to trigger this test...
2,661
Posted By mogabr
i have tried this and it works great except...
i have tried this
and it works great
except after the process terminated ,, its come alive again and run :)
there is something missing

---------- Post updated at 08:36 AM ---------- Previous...
2,661
Posted By mogabr
well i think i cant explain in details ...
well

i think i cant explain in details

my question is
how to pass CTRL+C to run automatic in shell scripting as batch mode

---------- Post updated at 07:46 AM ---------- Previous update...
2,661
Posted By mogabr
in shell scripting another command/line will not...
in shell scripting another command/line will not run until end of the first command
so when put this line sarm pcsp -s CHG_M_P1

it will never ends,
kill, trap , signulhup nothing will works...
2,661
Posted By mogabr
How to interrupt running application?
Hello

i have problem passing ctrl+C into shell script

this script will run application and return value but never ends and stay running.

i tried trap and not working at all


the command...
1,181
Posted By mogabr
i tried something like this if [-s...
i tried something like this
if [-s "ftp://host_name/file.name"]

but not working
1,181
Posted By mogabr
FTP file check help
hello

i need check if file_name exist on remote FTP or not
the FTP is anonymous and doesnt require username/pass
Forum: Programming 01-11-2012
1,631
Posted By mogabr
mysql query help
Hello

i have created mysql query to compare to values and get difference in percentage

as following:

SELECT file_name, 100 - ((100 * (SELECT file_count FROM xipi_files z WHERE x.file_group...
1,378
Posted By mogabr
many thanks for your help i have played...
many thanks for your help

i have played little with cut command and i think this command will be little better
cut -d '|' -f 3,4,5,6,7,9,10
what u think ?
regards
1,378
Posted By mogabr
get few words from same line
Hello all


i tried awk , cut but i think something missing

i have this line

@@XYMONDCHK-V1|.acklist.|developer_instead|rendy_google_yagom|1323977582|1323979382|1323979382|1|admin|test case...
3,396
Posted By mogabr
task scheduler for linux
Hello

i am looking for good and popular application run on linux OS as centos to give same function as crontab
i am seeking task scheduler with web portal and logs and so on

i preferred good...
Forum: Programming 09-23-2011
1,832
Posted By mogabr
mysql -uroot -Dxy -p259 -e "TRUNCATE allev; ...
mysql -uroot -Dxy -p259 -e "TRUNCATE allev;
load data infile '/tmp/test.log' into table
allev (server_name,test_name,start_Date,end_date,outage_time,old_status,current_status,error_code)
set...
Forum: Programming 09-23-2011
1,832
Posted By mogabr
i am using following query load data infile...
i am using following query
load data infile '/home/DEBUG.txt'into table DEB
how to add the extra field which is combination of 2 fields ?

can you give me full example ?
Forum: Programming 09-23-2011
1,832
Posted By mogabr
insert query help
Hello

i want help to load data from file into mysql DB
this part i know how to do
but during loading
i want to combine 2 fields into 1 field and insert into db as primary key in new column
...
1,172
Posted By mogabr
ssh run script error
Hello


when try to excute the following

ssh -l pla 10.287.60.55 vis_fil

vis_fil not found.

but it works fine when login to the server.

can you help me run this command in one online...
7,413
Posted By mogabr
hello thanks for your answer but i...
hello

thanks for your answer

but i guess i didnt explain well

i need to create perl script to connect remotely to another server and run another perl script remotely


regards
7,413
Posted By mogabr
run remote perl script
Hello

i want create perl script to connect remotely to another machine and run perl script

please note that the remote script check for different variables remotely and not located on local...
8,839
Posted By mogabr
hello yes you right its not safe but this is...
hello

yes you right its not safe but this is the allowed option now to me due to company rules

thanks if you help
8,839
Posted By mogabr
problem with sshpass
Hello

i am using sshpass to pass remote password into script

but phase some problems when try to execute some commands remotely
which means that the remote env not passed through sshpass
...
7,324
Posted By mogabr
its works good ... thanks for your help :D
its works good ... thanks for your help :D
Showing results 1 to 25 of 67

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