[pso] Problema cu un fisier batch

Florin Antonescu florinantonescu at yahoo.com
Wed Mar 5 08:49:27 EET 2008


> Salut,
> Incerc sa rulez un fisier batch pe masina virtuala de Linux, prin
> putty, numai ca imi da urmatorul mesaj:
> /root/tema1/commands.sh: line 2: obj-m=sci.o: command not found
> 
> Fisierul commands.sh are urmatorul continut:
> cd /root/tema1/
> make
> insmod sci.ko
> rmmod sci
> 
> Daca rulez make in masina virtuala merge perfect. Unde este greseala?

Daca rulez in masina virtuala comanda make merge perfect

Rulezi ca root?
DA

Ce contine fisierul Makefile?
KDIR=/lib/modules/`uname -r`/build
kbuild:
    make -C $(KDIR) M=`pwd`
clean:
    make -C $(KDIR) M=`pwd` clean

Ce contile fisierul Kbuild?
EXTRA_FLAGS=-g
obj-m=sci.o

Ce contine directorul /root/tema1?
Kbuild
Makefile
sci.c
commands.sh

Fisierul comands.sh este executabil (chmod +x commands.sh)

Razvan



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso






      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080304/593300b9/attachment.htm 


More information about the pso mailing list