TheTechGuide Forum
General Category => Software => Topic started by: Space Between on May 03, 2003, 11:07:23 AM
-
in windows...when you drag a file onto a .bat it assigns the file to %1..for example to type a .txt file it would be
@echo off
type %1
pause
it would type the .txt in a dos shell
now in linux...how is this done
if i have a .txt file and drag it onto a script file under
gnome/kde how do i get it to performa similar action
in your linux gui file browser..drag foo.txt onto a foo.sh and have it be typed out..like
#!/bin/bash
cat $1
it is not working now...under gnome in rh linux 7.1 when i drag the file onto the .sh it just doesnt do anything