10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I pass bash Variable to python script.
bash.sh
while read -r db
do
Printf "%s\n" ${db} "Found"
done < path/to/file.txt
file.txt
db1
db2
db3
python.py
print(${db}_tables.replicate.fix) (2 Replies)
Discussion started by: lpoolfc
2 Replies
2. Fedora
I'm sure this is a really dumb question, but if I use a command in Fedora 23 emergency mode, and that command doesn't exist, I don't come back to the command prompt, but enter what appears to be a text mode. How do I get back to the command line? (2 Replies)
Discussion started by: bangorme
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have sometimes a problem when i want to copy files from a nas, it's the nas which have a problem when it is very requested by a lot of users, the command cp turn and don't stop (the file size does not increase) and it's lock.
Is it possible to verbose this command ?
I try with the flag... (1 Reply)
Discussion started by: protocomm
1 Replies
4. UNIX for Dummies Questions & Answers
when I created user and use su - username then its prompt come in bash mode
# su - uusr
-bash-4.1$
What is this bash mode .
this also show
-bash-4.1$ touch filename
touch: cannot touch `filename': Permission denied
Please use CODE tags (not ICODE tags) when displaying... (2 Replies)
Discussion started by: kaushik02018
2 Replies
5. Shell Programming and Scripting
Hi,
I put the necessary tftp commands into a batch file and I can run tftp by
$ tftp < tftpbatchscript
in bash command line and then successfully exit.
Now, I want to put a line which does the same thing above. However, when I put this line into a bash script, the lines below this line... (1 Reply)
Discussion started by: yildiz.a
1 Replies
6. Programming
Hello,
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
>>> import subprocess
>>> help(subprocess)
...
...
I'm hoping so as I hate scrolling and love how less works with... (0 Replies)
Discussion started by: Narnie
0 Replies
7. UNIX and Linux Applications
Hi,
I am not sure if this is the right forum to post an emacs question, but if you could point me to an appropriate emacs forum that would be useful too.
Anyway, here is the description of the problem:
I usually develop python code with emacs, emacs being in python code. On my desktop a... (0 Replies)
Discussion started by: alex57326
0 Replies
8. Shell Programming and Scripting
Hi guys...
I have a ksh shell by default, so when I login to my unix box, all my .profile statements gets executed(including the aliases).
But for some reasons(may be not comfortable using ksh), I would always switch to BASH(in the same session but as a child process) but in the process I am... (16 Replies)
Discussion started by: anduzzi
16 Replies
9. Shell Programming and Scripting
We need to use sftp to replace the ftp on all our application scripts.
The command itself works, however,the output from the verbose is not giving us a success response with a transfer count. Our processes require that we interrogate the response to ensure the data transfer was successful.
... (2 Replies)
Discussion started by: MizzGail
2 Replies
10. Shell Programming and Scripting
Python is obviously better than expect for many reasons such as efficieny, opsys availabiliy, functions etc), but can anybody tell me how it is better structurally.
I.e. If automating a procedure such as 'Autoftp' login why is Python better than Bash? Yes it uses only one file, istead of the two... (4 Replies)
Discussion started by: BISH
4 Replies