Tag Info

New answers tagged

5

This answer is partially a summary of the comments, but here it is: There is no way the code works in IDLE like it is pasted into your question: you do not call the function, and (thus) it has no argument as well. To make it run from the terminal, your code (file) should at least include: def num(b): print("Give a number ") b = b + 5 print(b) ...


0

Use xdg-open it works in most linux distros. example: xdg-open /filepath/file.txt


0

On how to write this alias: The alias does not need to open the files separately - gedit can take multiple files. alias a="gedit ~/Desktop/abc/test1.c ~/Desktop/xyz/test2.c" This also replaces the path of your home directory by ~. If it should work for other users, use ~konstantinosubuntu instead of the ~. To make the command independent of the terminal, ...


1

you ca do this by ssh -l Other-User -X localhost gedit there is an new window run on your desktop, but with environment of "Other-User"! I have tested this with Ubuntu 10.04 LTS on my box!


2

Its also a workaround, but you don't have to apply this for every application. Write this to your .bashrc and you can use this wrapper with F12 (or chose another key) to suppress the warnings: # output filter of() { if [ -n "$*" ]; then # write the real command to history without the prefix "of" history -s "$*" # catch the ...



Top 50 recent answers are included