|
|
2009-08-15
, 08:03
|
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
| The Following 2 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
|
2009-08-15
, 08:45
|
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#3
|
| The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
|
2009-08-15
, 09:07
|
|
Posts: 67 |
Thanked: 13 times |
Joined on Feb 2008
@ U.S.A.
|
#4
|
- source /etc/osso-af-init/af-defines.sh
or- Prefix the maemo-summoner command with "run-standalone.sh"
/usr/bin/maemo-summoner /usr/bin/osso-xterm.launch \ -e "tail -f <file>"
|
|
2009-08-15
, 09:13
|
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
|
|
2009-08-15
, 09:21
|
|
Posts: 67 |
Thanked: 13 times |
Joined on Feb 2008
@ U.S.A.
|
#6
|
Source isn't a script. It's a command that you include in the script (before maemo-summoner).
(I know source works because I've used it in scripts that run as root and run dbus-send, not even maemo-summoner.)
Here's the main:
int main(int argc, char **argv) { gboolean started_from_dbus = FALSE; if (argc > 1) started_from_dbus = !strcmp(argv[1], "--started-from-dbus"); g_debug("main: started_from_dbus = %s\n", started_from_dbus ? "TRUE" : "FALSE"); if (dbus_setup(started_from_dbus)) { gtk_init(&argc, &argv); preamble(&argc, &argv, APPLICATION_NAME); gdk_rgb_find_color(gdk_colormap_get_system(), &clr_white); gdk_rgb_find_color(gdk_colormap_get_system(), &clr_black); xterm_new(argv); gtk_main(); } return 0; }void preamble(int *p_argc, char ***p_argv, const char *base_name) { int Nix; g_set_application_name(base_name); for (Nix = G_N_ELEMENTS(stock_icons) - 1 ; Nix > -1 ; Nix--) add_stock_icon(stock_icons[Nix].fname, stock_icons[Nix].stock_name); }My goal at the moment is to simply launch an xterm window from a script, and have it execute something (in this case, "tail -f <some log file>")
My blind guess was to try:
osso-xterm -x "tail -f /var/log/file"
osso-xterm -c "tail -f /var/log/file"
/usr/bin/maemo-summoner /usr/bin/osso-xterm.launch -x "tail -f /var/log/file"
All those attempts have failed.