PDA

View Full Version : BBIPS single line command?


nismoskys
March 22nd, 2006, 09:01 PM
I didnt really know where i should post this, so i put it here..

i was just wondering, is there any way to perform an action with bbips using a single line? Rather than going

bbips
2
4
1024
768

Is there any way to perform that whole action in a single line, instead of having to push enter after each option?

thanks.

IYY
March 23rd, 2006, 12:20 AM
If you just want to repeat pre-coded instructions you could make a text file, call it instructions.txt and then run

cat instructions.txt | bbips

If you really just want to place the instructions in one line and run it interactively (I don't know why), you could do:

echo -e '1\n2\n3' | bbips

In this case, the commands bbips will get will be 1, 2 and 3.

nismoskys
March 23rd, 2006, 01:09 AM
cool.. thnx IYY it works, but the reason i need it to work is still not working..
i installed the "nautilus-scripts" thing where you can execute a script on certain files by right clicking on them.

i pasted the command into a text file nd put it in the nautilus-scripts folder.. but it doesnt show up in the menu. i guess im not doing something right to make it an "executable file"..cuz all i did was put that command in a text file.

any suggestions would be welcome :)

IYY
March 23rd, 2006, 04:04 PM
First of all, any script file needs to start with the line #!/bin/bash (or #!/bin/sh or any other shell you wish to use).

Second, it needs to be made executable (chmod +x yourscript).

nismoskys
March 23rd, 2006, 08:17 PM
cool thanks.