All Questions
7 questions
0
votes
0
answers
206
views
Write output of multiple python scripts to single file
I used to have only one Python script, the output of which would be directed to a log file.
It works like this: I have it in autostart, using crontab
@reboot /bin/sleep 30; sudo /usr/bin/python3 -u /...
0
votes
0
answers
23
views
My variable seems to change when passed into a CLI [duplicate]
I am attempting to use a java based program, CRFVoter, for text mining. I called and executed the script as specified.
[user]$ java -jar CRFVoter.jar
usage: CRFVoter GPRO
Command Line Tool for ...
1
vote
1
answer
2k
views
How to procedurally generate command in bash script using string interpolation with spaces?
I'm trying to create a simple script that uses a list of months like this:
(Jan Feb)
To generate and execute this command:
python ExpenseManager.py -p Inputs/Jan\ 2019\ Debit.CSV Inputs/Jan\
...
2
votes
1
answer
1k
views
How do I detect a command is being executed and then execute an additional command after the current command
I want the shell to detect that I had run a specific command and then after running the command, run another command.
For Example : When every I run the command : git commit -m " "
First finish the ...
0
votes
1
answer
626
views
Possible to replace string if match string in two files? [closed]
i am aware of this doable by sed but only limited to one string
let me explain let better, lets say in file 1 we got something like this
tom,123456789
steve,1478321
jon,315457
and in the second file ...
-2
votes
3
answers
1k
views
Shell scripting : want to login on some server, which are in same domain and execute command and exit
I have 10 unix servers, I want to log into them one by one, execute 4-5 lines of code, save the output and exit.
For Example: 10 serves:
Intially at xyz server
Login in server 1 --> execute 4-5 ...
2
votes
1
answer
2k
views
.profile is written in shell script — can I instead make my system understand that I want it to execute a Python script instead?
I get Python. I don't get shell script. I could learn shell script, but I would rather not if I can use Python in its place.
A good place for me to start would be the .profile script. Currently, for ...