Search Results

Search: Posts Made By: black_fender
2,249
Posted By black_fender
Try this #!/bin/bash ...
Try this


#!/bin/bash

addresses=/absolute_path_to_your_adresses_file/adresses.txt

read -p "Insert the word to search here : " word
grep -iq $word $addresses
if [ $? -eq 0 ]; then
grep...
2,466
Posted By black_fender
The content of the script : #!/bin/bash ...
The content of the script :

#!/bin/bash

target_date=`date +%Y%m`
cd /tmp
the_existing_file=`ls *$target_date*`
the_desired_file="Access_file_Record.${target_date}"

if [ $the_existing_file...
850
Posted By black_fender
Try this : $: cat text.txt | while read line...
Try this :

$: cat text.txt | while read line
> do
> len=${#line}
> if [ "$len" -ne 53 ]; then
> echo "wrong"
> exit 1
> else
> echo "Perfect"
> fi
> done
wrong
$:
It surely works. In...
9,361
Posted By black_fender
In the main script can you try this : ...
In the main script can you try this :

instead

ssh faunus:/home/dslmain/scripts/senddcmcadefttest.sh
this :

ssh user@remote_machine "/home/dslmain/scripts/senddcmcadefttest.sh ; exit \$?"
...
3,452
Posted By black_fender
Also you if you want to use ping in a script I...
Also you if you want to use ping in a script I suggest this approach :

ping -c X <hostname>

where X is number of packages (one per second) you want to send to the rmeote server. To check the...
Showing results 1 to 5 of 5

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