Search Results

Search: Posts Made By: jimmy75_13
28,942
Posted By jimmy75_13
Sorry you're absolutely right about the...
Sorry you're absolutely right about the arguments, the reason i had the quotes is because ultimately i wish to ssh followed by a sudo like so :

ssh HOST sudo su - user /path/test.sh ARG
...
28,942
Posted By jimmy75_13
I want to be able to execute a script with...
I want to be able to execute a script with arguments through SSH in a KSH script, and as it so happens, the "-c" option allows me to send my arguments through, but raises that "cipher issue".
28,942
Posted By jimmy75_13
How can i specify in a KSH script the cipher type...
How can i specify in a KSH script the cipher type in a SSH command?

As for the quotes, if i don't put them in, the parameter doesn't go through the SSH command....
28,942
Posted By jimmy75_13
ssh unkown cipher type error
Hello everyone,

I am attempting to execute a script through SSH and am getting "unkown cipher type error".... Here is my command:
ssh paydvopl02 -c '"/home/jpassema/test.sh 1"'

and the actual...
9,494
Posted By jimmy75_13
Thanks a lot Franklin52, It seems i was not...
Thanks a lot Franklin52,

It seems i was not able to properly read the file. Your code works just fine.
Thanks again!!
9,494
Posted By jimmy75_13
Hi kshji, Thanks for the suggestion. It...
Hi kshji,

Thanks for the suggestion. It still doesn't work, which tells me that the issue is probably the file in itself or something of that sort.Could it come from the format of the file or...
9,494
Posted By jimmy75_13
I have added echos to test the values of...
I have added echos to test the values of uproc_cible (the script input), and UPROC, the line read. Those echos echo the proper values (output below)
+ uproc_cible=uproc1
+ [ ! -f...
9,494
Posted By jimmy75_13
Funksen, My goal is not the content of Uproc...
Funksen,

My goal is not the content of Uproc but the content on the same line. Uproc is an identifier (unique of course).

This is the test content of the file to be read :...
9,494
Posted By jimmy75_13
Hi Itkamaraj, I have tried your solution,...
Hi Itkamaraj,

I have tried your solution, here is the output:
file=/home/jpassema/purge_/appli
+ rep_cible=
+ IFS=&
+ cat /home/jpassema/purge_/appli
+ read UPROC REP_CIBLE LIST_REP_SOURCE
+...
9,494
Posted By jimmy75_13
Hi Funksen, Thanks for your prompt reply. ...
Hi Funksen,

Thanks for your prompt reply.
As i undestand it, this command will find the line identified by "uproc_cible" and set the variables : uproc, rep_cible, liste_rep_sources with the...
9,494
Posted By jimmy75_13
Setting a variable in a while loop (.ksh script)
Hello Everyone,

I'm still trying to grasp many concepts in .ksh scripting, one of them being variables inside loops. My problem is the following:

* I'm trying to set a variable inside a while...
48,925
Posted By jimmy75_13
Hi DGpicket Thanks for your reply: ...
Hi DGpicket

Thanks for your reply:



If i put my remote server subroutine in a test.sh with 1 parameter and did this :

ssh jpassema@SERVER < test.sh $LE_PATH ?
48,925
Posted By jimmy75_13
tcgetattr: Inappropriate ioctl for device after ssh command
Hello everyone


I am finishing a script allowing me to purge logs on multiple servers, i have one last pb with the ssh command.........it is throwing me the following error :

tcgetattr:...
2,809
Posted By jimmy75_13
Thanks for the idea Gary :b: However the...
Thanks for the idea Gary :b:

However the interesting part of "awk" is that the number of strings in the variable changes from line to line, thus the $NF token in awk is really useful there
...
2,809
Posted By jimmy75_13
sorry to reopen this post.....:rolleyes: ...
sorry to reopen this post.....:rolleyes:

thanks to your solutions things got better but i am having a hard time integrating a command that normally works into the awk "loop" :
echo $NEW_PATH|awk...
2,809
Posted By jimmy75_13
Great!! :b: I have just tested it, it will...
Great!! :b:

I have just tested it, it will work just fine, i will replace the print $i with my instructions then.

Thanks a lot for your help!!
2,809
Posted By jimmy75_13
thanks for the tip:b: but i use RedHat platform....
thanks for the tip:b: but i use RedHat platform. here is the shell version :

GNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu)
2,809
Posted By jimmy75_13
Hi, Thank you for your lightning quick reply...
Hi,

Thank you for your lightning quick reply !! :b:

I have typed a test script that goes like this :
#!/bin/bash


var='/var/x/www && /usr/x/share/doc && /etc/x/logs'

echo $var||awk...
2,809
Posted By jimmy75_13
extracting substrings from variables
Hello Everyone,

I am looking for a way to extract substrings to local variables. Here is the format of the string variable i am using :

/var/x/www && /usr/x/share/doc && /etc/x/logs

where...
Showing results 1 to 19 of 19

 

Featured Tech Videos

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